Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Side by Side Diff: chromecast/browser/cast_content_browser_client.h

Issue 917063003: Chromecast: add platform hooks to inject browser/renderer message filters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_
6 #define CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ 6 #define CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "content/public/browser/content_browser_client.h" 12 #include "content/public/browser/content_browser_client.h"
13 13
14 namespace breakpad { 14 namespace breakpad {
15 class CrashHandlerHostLinux; 15 class CrashHandlerHostLinux;
16 } 16 }
17 17
18 namespace content {
19 class BrowserMessageFilter;
20 }
21
18 namespace chromecast { 22 namespace chromecast {
19 namespace shell { 23 namespace shell {
20 24
21 class CastBrowserMainParts; 25 class CastBrowserMainParts;
22 class URLRequestContextFactory; 26 class URLRequestContextFactory;
23 27
24 void PlatformAppendExtraCommandLineSwitches(base::CommandLine* command_line);
25
26 class CastContentBrowserClient: public content::ContentBrowserClient { 28 class CastContentBrowserClient: public content::ContentBrowserClient {
27 public: 29 public:
28 CastContentBrowserClient(); 30 CastContentBrowserClient();
29 ~CastContentBrowserClient() override; 31 ~CastContentBrowserClient() override;
30 32
33 // Appends extra command line arguments before launching a new process.
34 void PlatformAppendExtraCommandLineSwitches(base::CommandLine* command_line);
35
36 // Returns any BrowserMessageFilters from the platform implementation that
37 // should be added when launching a new render process.
38 std::vector<scoped_refptr<content::BrowserMessageFilter>>
39 PlatformGetBrowserMessageFilters();
40
31 // content::ContentBrowserClient implementation: 41 // content::ContentBrowserClient implementation:
32 content::BrowserMainParts* CreateBrowserMainParts( 42 content::BrowserMainParts* CreateBrowserMainParts(
33 const content::MainFunctionParams& parameters) override; 43 const content::MainFunctionParams& parameters) override;
34 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; 44 void RenderProcessWillLaunch(content::RenderProcessHost* host) override;
35 net::URLRequestContextGetter* CreateRequestContext( 45 net::URLRequestContextGetter* CreateRequestContext(
36 content::BrowserContext* browser_context, 46 content::BrowserContext* browser_context,
37 content::ProtocolHandlerMap* protocol_handlers, 47 content::ProtocolHandlerMap* protocol_handlers,
38 content::URLRequestInterceptorScopedVector request_interceptors) 48 content::URLRequestInterceptorScopedVector request_interceptors)
39 override; 49 override;
40 bool IsHandledURL(const GURL& url) override; 50 bool IsHandledURL(const GURL& url) override;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 117
108 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; 118 scoped_ptr<URLRequestContextFactory> url_request_context_factory_;
109 119
110 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); 120 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient);
111 }; 121 };
112 122
113 } // namespace shell 123 } // namespace shell
114 } // namespace chromecast 124 } // namespace chromecast
115 125
116 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ 126 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698