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

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

Issue 1182443003: Moved logic for mapping child process FDs for ICU and V8 into child_process_launcher.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
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 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 const content::MainFunctionParams& parameters) override; 68 const content::MainFunctionParams& parameters) override;
69 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; 69 void RenderProcessWillLaunch(content::RenderProcessHost* host) override;
70 net::URLRequestContextGetter* CreateRequestContext( 70 net::URLRequestContextGetter* CreateRequestContext(
71 content::BrowserContext* browser_context, 71 content::BrowserContext* browser_context,
72 content::ProtocolHandlerMap* protocol_handlers, 72 content::ProtocolHandlerMap* protocol_handlers,
73 content::URLRequestInterceptorScopedVector request_interceptors) 73 content::URLRequestInterceptorScopedVector request_interceptors)
74 override; 74 override;
75 bool IsHandledURL(const GURL& url) override; 75 bool IsHandledURL(const GURL& url) override;
76 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, 76 void AppendExtraCommandLineSwitches(base::CommandLine* command_line,
77 int child_process_id) override; 77 int child_process_id) override;
78 void AppendMappedFileCommandLineSwitches(
79 base::CommandLine* command_line) override;
80 content::AccessTokenStore* CreateAccessTokenStore() override; 78 content::AccessTokenStore* CreateAccessTokenStore() override;
81 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host, 79 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host,
82 content::WebPreferences* prefs) override; 80 content::WebPreferences* prefs) override;
83 void ResourceDispatcherHostCreated() override; 81 void ResourceDispatcherHostCreated() override;
84 std::string GetApplicationLocale() override; 82 std::string GetApplicationLocale() override;
85 content::QuotaPermissionContext* CreateQuotaPermissionContext() override; 83 content::QuotaPermissionContext* CreateQuotaPermissionContext() override;
86 void AllowCertificateError( 84 void AllowCertificateError(
87 int render_process_id, 85 int render_process_id,
88 int render_view_id, 86 int render_view_id,
89 int cert_error, 87 int cert_error,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 int GetCrashSignalFD(const base::CommandLine& command_line); 140 int GetCrashSignalFD(const base::CommandLine& command_line);
143 141
144 // Creates a CrashHandlerHost instance for the given process type. 142 // Creates a CrashHandlerHost instance for the given process type.
145 breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost( 143 breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost(
146 const std::string& process_type); 144 const std::string& process_type);
147 145
148 // A static cache to hold crash_handlers for each process_type 146 // A static cache to hold crash_handlers for each process_type
149 std::map<std::string, breakpad::CrashHandlerHostLinux*> crash_handlers_; 147 std::map<std::string, breakpad::CrashHandlerHostLinux*> crash_handlers_;
150 #endif 148 #endif
151 149
152 base::ScopedFD v8_natives_fd_;
153 base::ScopedFD v8_snapshot_fd_;
154 bool natives_fd_exists() { return v8_natives_fd_ != -1; }
155 bool snapshot_fd_exists() { return v8_snapshot_fd_ != -1; }
156
157 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; 150 scoped_ptr<URLRequestContextFactory> url_request_context_factory_;
158 151
159 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); 152 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient);
160 }; 153 };
161 154
162 } // namespace shell 155 } // namespace shell
163 } // namespace chromecast 156 } // namespace chromecast
164 157
165 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ 158 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698