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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 const content::MainFunctionParams& parameters) override; | 71 const content::MainFunctionParams& parameters) override; |
72 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; | 72 void RenderProcessWillLaunch(content::RenderProcessHost* host) override; |
73 net::URLRequestContextGetter* CreateRequestContext( | 73 net::URLRequestContextGetter* CreateRequestContext( |
74 content::BrowserContext* browser_context, | 74 content::BrowserContext* browser_context, |
75 content::ProtocolHandlerMap* protocol_handlers, | 75 content::ProtocolHandlerMap* protocol_handlers, |
76 content::URLRequestInterceptorScopedVector request_interceptors) | 76 content::URLRequestInterceptorScopedVector request_interceptors) |
77 override; | 77 override; |
78 bool IsHandledURL(const GURL& url) override; | 78 bool IsHandledURL(const GURL& url) override; |
79 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 79 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
80 int child_process_id) override; | 80 int child_process_id) override; |
81 void AppendMappedFileCommandLineSwitches( | |
82 base::CommandLine* command_line) override; | |
83 content::AccessTokenStore* CreateAccessTokenStore() override; | 81 content::AccessTokenStore* CreateAccessTokenStore() override; |
84 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host, | 82 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host, |
85 content::WebPreferences* prefs) override; | 83 content::WebPreferences* prefs) override; |
86 void ResourceDispatcherHostCreated() override; | 84 void ResourceDispatcherHostCreated() override; |
87 std::string GetApplicationLocale() override; | 85 std::string GetApplicationLocale() override; |
88 content::QuotaPermissionContext* CreateQuotaPermissionContext() override; | 86 content::QuotaPermissionContext* CreateQuotaPermissionContext() override; |
89 void AllowCertificateError( | 87 void AllowCertificateError( |
90 int render_process_id, | 88 int render_process_id, |
91 int render_view_id, | 89 int render_view_id, |
92 int cert_error, | 90 int cert_error, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 int GetCrashSignalFD(const base::CommandLine& command_line); | 142 int GetCrashSignalFD(const base::CommandLine& command_line); |
145 | 143 |
146 // Creates a CrashHandlerHost instance for the given process type. | 144 // Creates a CrashHandlerHost instance for the given process type. |
147 breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost( | 145 breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost( |
148 const std::string& process_type); | 146 const std::string& process_type); |
149 | 147 |
150 // A static cache to hold crash_handlers for each process_type | 148 // A static cache to hold crash_handlers for each process_type |
151 std::map<std::string, breakpad::CrashHandlerHostLinux*> crash_handlers_; | 149 std::map<std::string, breakpad::CrashHandlerHostLinux*> crash_handlers_; |
152 #endif | 150 #endif |
153 | 151 |
154 base::ScopedFD v8_natives_fd_; | |
155 base::ScopedFD v8_snapshot_fd_; | |
156 bool natives_fd_exists() { return v8_natives_fd_ != -1; } | |
157 bool snapshot_fd_exists() { return v8_snapshot_fd_ != -1; } | |
158 | |
159 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; | 152 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; |
160 | 153 |
161 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); | 154 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); |
162 }; | 155 }; |
163 | 156 |
164 } // namespace shell | 157 } // namespace shell |
165 } // namespace chromecast | 158 } // namespace chromecast |
166 | 159 |
167 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 160 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |