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

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

Issue 859863003: Chromecast: adds hook for internal code to set command-line flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 chromecast { 18 namespace chromecast {
19 namespace shell { 19 namespace shell {
20 20
21 class CastBrowserMainParts; 21 class CastBrowserMainParts;
22 class URLRequestContextFactory; 22 class URLRequestContextFactory;
23 23
24 void PlatformAppendExtraCommandLineSwitches(base::CommandLine* command_line);
25
24 class CastContentBrowserClient: public content::ContentBrowserClient { 26 class CastContentBrowserClient: public content::ContentBrowserClient {
25 public: 27 public:
26 CastContentBrowserClient(); 28 CastContentBrowserClient();
27 ~CastContentBrowserClient() override; 29 ~CastContentBrowserClient() override;
28 30
29 // content::ContentBrowserClient implementation: 31 // content::ContentBrowserClient implementation:
30 content::BrowserMainParts* CreateBrowserMainParts( 32 content::BrowserMainParts* CreateBrowserMainParts(
31 const content::MainFunctionParams& parameters) override; 33 const content::MainFunctionParams& parameters) override;
32 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; 34 void RenderProcessWillLaunch(content::RenderProcessHost* host) override;
33 net::URLRequestContextGetter* CreateRequestContext( 35 net::URLRequestContextGetter* CreateRequestContext(
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 107
106 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; 108 scoped_ptr<URLRequestContextFactory> url_request_context_factory_;
107 109
108 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); 110 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient);
109 }; 111 };
110 112
111 } // namespace shell 113 } // namespace shell
112 } // namespace chromecast 114 } // namespace chromecast
113 115
114 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ 116 #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