OLD | NEW |
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 Loading... |
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 int GetCrashSignalFD(const base::CommandLine& command_line); | 141 int GetCrashSignalFD(const base::CommandLine& command_line); |
144 | 142 |
145 // Creates a CrashHandlerHost instance for the given process type. | 143 // Creates a CrashHandlerHost instance for the given process type. |
146 breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost( | 144 breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost( |
147 const std::string& process_type); | 145 const std::string& process_type); |
148 | 146 |
149 // A static cache to hold crash_handlers for each process_type | 147 // A static cache to hold crash_handlers for each process_type |
150 std::map<std::string, breakpad::CrashHandlerHostLinux*> crash_handlers_; | 148 std::map<std::string, breakpad::CrashHandlerHostLinux*> crash_handlers_; |
151 #endif | 149 #endif |
152 | 150 |
153 base::ScopedFD v8_natives_fd_; | |
154 base::ScopedFD v8_snapshot_fd_; | |
155 bool natives_fd_exists() { return v8_natives_fd_ != -1; } | |
156 bool snapshot_fd_exists() { return v8_snapshot_fd_ != -1; } | |
157 | |
158 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; | 151 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; |
159 | 152 |
160 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); | 153 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); |
161 }; | 154 }; |
162 | 155 |
163 } // namespace shell | 156 } // namespace shell |
164 } // namespace chromecast | 157 } // namespace chromecast |
165 | 158 |
166 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 159 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |