Chromecast: Adds WebUI stubs for cast shell.
Chromecast products provide different WebUIs for pages to display. This provides an appropriate initialization hook. R=byungchul@chromium.org,lcwu@chromium.org BUG=336640 Review URL: https://codereview.chromium.org/472183002 Cr-Commit-Position: refs/heads/master@{#289916} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289916 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
chromecast
@ -159,6 +159,7 @@
|
||||
'shell/browser/geolocation/cast_access_token_store.h',
|
||||
'shell/browser/url_request_context_factory.cc',
|
||||
'shell/browser/url_request_context_factory.h',
|
||||
'shell/browser/webui/webui_cast.h',
|
||||
'shell/common/cast_content_client.cc',
|
||||
'shell/common/cast_content_client.h',
|
||||
'shell/renderer/cast_content_renderer_client.cc',
|
||||
@ -168,6 +169,7 @@
|
||||
['chromecast_branding=="Chrome"', {
|
||||
'dependencies': [
|
||||
'internal/chromecast_internal.gyp:cast_gfx_internal',
|
||||
'internal/chromecast_internal.gyp:cast_shell_internal',
|
||||
],
|
||||
}, {
|
||||
'dependencies': [
|
||||
@ -175,6 +177,7 @@
|
||||
],
|
||||
'sources': [
|
||||
'shell/browser/devtools/remote_debugging_server_simple.cc',
|
||||
'shell/browser/webui/webui_cast_simple.cc',
|
||||
],
|
||||
}],
|
||||
],
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include "chromecast/shell/browser/cast_browser_context.h"
|
||||
#include "chromecast/shell/browser/devtools/remote_debugging_server.h"
|
||||
#include "chromecast/shell/browser/url_request_context_factory.h"
|
||||
#include "chromecast/shell/browser/webui/webui_cast.h"
|
||||
|
||||
namespace chromecast {
|
||||
namespace shell {
|
||||
@ -75,6 +76,8 @@ void CastBrowserMainParts::PreMainMessageLoopRun() {
|
||||
browser_context_.reset(new CastBrowserContext(url_request_context_factory_));
|
||||
dev_tools_.reset(new RemoteDebuggingServer());
|
||||
|
||||
InitializeWebUI();
|
||||
|
||||
cast_service_.reset(CastService::Create(browser_context_.get()));
|
||||
cast_service_->Start();
|
||||
}
|
||||
|
18
chromecast/shell/browser/webui/webui_cast.h
Normal file
18
chromecast/shell/browser/webui/webui_cast.h
Normal file
@ -0,0 +1,18 @@
|
||||
// Copyright 2014 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef CHROMECAST_SHELL_BROWSER_WEBUI_WEBUI_CAST_H_
|
||||
#define CHROMECAST_SHELL_BROWSER_WEBUI_WEBUI_CAST_H_
|
||||
|
||||
namespace chromecast {
|
||||
namespace shell {
|
||||
|
||||
// Initializes all WebUIs needed for the Chromecast shell. This should be
|
||||
// implemented on a per-product basis.
|
||||
void InitializeWebUI();
|
||||
|
||||
} // namespace shell
|
||||
} // namespace chromecast
|
||||
|
||||
#endif // CHROMECAST_SHELL_BROWSER_UI_WEBUI_CAST_H_
|
15
chromecast/shell/browser/webui/webui_cast_simple.cc
Normal file
15
chromecast/shell/browser/webui/webui_cast_simple.cc
Normal file
@ -0,0 +1,15 @@
|
||||
// Copyright 2014 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "chromecast/shell/browser/webui/webui_cast.h"
|
||||
|
||||
namespace chromecast {
|
||||
namespace shell {
|
||||
|
||||
void InitializeWebUI() {
|
||||
// Intentional no-op for public cast_shell build.
|
||||
}
|
||||
|
||||
} // namespace shell
|
||||
} // namespace chromecast
|
Reference in New Issue
Block a user