| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 const content::MainFunctionParams& parameters) override; | 53 const content::MainFunctionParams& parameters) override; |
| 54 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; | 54 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; |
| 55 net::URLRequestContextGetter* CreateRequestContext( | 55 net::URLRequestContextGetter* CreateRequestContext( |
| 56 content::BrowserContext* browser_context, | 56 content::BrowserContext* browser_context, |
| 57 content::ProtocolHandlerMap* protocol_handlers, | 57 content::ProtocolHandlerMap* protocol_handlers, |
| 58 content::URLRequestInterceptorScopedVector request_interceptors) | 58 content::URLRequestInterceptorScopedVector request_interceptors) |
| 59 override; | 59 override; |
| 60 bool IsHandledURL(const GURL& url) override; | 60 bool IsHandledURL(const GURL& url) override; |
| 61 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 61 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
| 62 int child_process_id) override; | 62 int child_process_id) override; |
| 63 void AppendMappedFileCommandLineSwitches( |
| 64 base::CommandLine* command_line) override; |
| 63 content::AccessTokenStore* CreateAccessTokenStore() override; | 65 content::AccessTokenStore* CreateAccessTokenStore() override; |
| 64 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host, | 66 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host, |
| 65 content::WebPreferences* prefs) override; | 67 content::WebPreferences* prefs) override; |
| 66 void ResourceDispatcherHostCreated() override; | 68 void ResourceDispatcherHostCreated() override; |
| 67 std::string GetApplicationLocale() override; | 69 std::string GetApplicationLocale() override; |
| 68 content::QuotaPermissionContext* CreateQuotaPermissionContext() override; | 70 content::QuotaPermissionContext* CreateQuotaPermissionContext() override; |
| 69 void AllowCertificateError( | 71 void AllowCertificateError( |
| 70 int render_process_id, | 72 int render_process_id, |
| 71 int render_view_id, | 73 int render_view_id, |
| 72 int cert_error, | 74 int cert_error, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // Creates a CrashHandlerHost instance for the given process type. | 126 // Creates a CrashHandlerHost instance for the given process type. |
| 125 breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost( | 127 breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost( |
| 126 const std::string& process_type); | 128 const std::string& process_type); |
| 127 | 129 |
| 128 // A static cache to hold crash_handlers for each process_type | 130 // A static cache to hold crash_handlers for each process_type |
| 129 std::map<std::string, breakpad::CrashHandlerHostLinux*> crash_handlers_; | 131 std::map<std::string, breakpad::CrashHandlerHostLinux*> crash_handlers_; |
| 130 #endif | 132 #endif |
| 131 | 133 |
| 132 base::ScopedFD v8_natives_fd_; | 134 base::ScopedFD v8_natives_fd_; |
| 133 base::ScopedFD v8_snapshot_fd_; | 135 base::ScopedFD v8_snapshot_fd_; |
| 136 bool natives_fd_exists() { return v8_natives_fd_ != -1; } |
| 137 bool snapshot_fd_exists() { return v8_snapshot_fd_ != -1; } |
| 134 | 138 |
| 135 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; | 139 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; |
| 136 | 140 |
| 137 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); | 141 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); |
| 138 }; | 142 }; |
| 139 | 143 |
| 140 } // namespace shell | 144 } // namespace shell |
| 141 } // namespace chromecast | 145 } // namespace chromecast |
| 142 | 146 |
| 143 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 147 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |