OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 std::vector<fileapi::URLRequestAutoMountHandler>* handlers) OVERRIDE; | 267 std::vector<fileapi::URLRequestAutoMountHandler>* handlers) OVERRIDE; |
268 virtual void GetAdditionalFileSystemBackends( | 268 virtual void GetAdditionalFileSystemBackends( |
269 content::BrowserContext* browser_context, | 269 content::BrowserContext* browser_context, |
270 const base::FilePath& storage_partition_path, | 270 const base::FilePath& storage_partition_path, |
271 ScopedVector<fileapi::FileSystemBackend>* additional_backends) OVERRIDE; | 271 ScopedVector<fileapi::FileSystemBackend>* additional_backends) OVERRIDE; |
272 virtual content::DevToolsManagerDelegate* | 272 virtual content::DevToolsManagerDelegate* |
273 GetDevToolsManagerDelegate() OVERRIDE; | 273 GetDevToolsManagerDelegate() OVERRIDE; |
274 virtual bool IsPluginAllowedToCallRequestOSFileHandle( | 274 virtual bool IsPluginAllowedToCallRequestOSFileHandle( |
275 content::BrowserContext* browser_context, | 275 content::BrowserContext* browser_context, |
276 const GURL& url) OVERRIDE; | 276 const GURL& url) OVERRIDE; |
277 virtual bool IsPluginAllowedToUseDevChannelAPIs() OVERRIDE; | 277 virtual bool IsPluginAllowedToUseDevChannelAPIs( |
| 278 content::BrowserContext* browser_context, |
| 279 const GURL& url) OVERRIDE; |
278 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( | 280 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( |
279 int render_process_id) OVERRIDE; | 281 int render_process_id) OVERRIDE; |
280 | 282 |
281 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 283 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
282 virtual void GetAdditionalMappedFilesForChildProcess( | 284 virtual void GetAdditionalMappedFilesForChildProcess( |
283 const base::CommandLine& command_line, | 285 const base::CommandLine& command_line, |
284 int child_process_id, | 286 int child_process_id, |
285 std::vector<content::FileDescriptorInfo>* mappings) OVERRIDE; | 287 std::vector<content::FileDescriptorInfo>* mappings) OVERRIDE; |
286 #endif | 288 #endif |
287 #if defined(OS_WIN) | 289 #if defined(OS_WIN) |
288 virtual const wchar_t* GetResourceDllName() OVERRIDE; | 290 virtual const wchar_t* GetResourceDllName() OVERRIDE; |
289 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, | 291 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, |
290 bool* success) OVERRIDE; | 292 bool* success) OVERRIDE; |
291 #endif | 293 #endif |
292 | 294 |
293 private: | 295 private: |
294 #if defined(ENABLE_WEBRTC) | 296 #if defined(ENABLE_WEBRTC) |
295 // Copies disable WebRTC encryption switch depending on the channel. | 297 // Copies disable WebRTC encryption switch depending on the channel. |
296 static void MaybeCopyDisableWebRtcEncryptionSwitch( | 298 static void MaybeCopyDisableWebRtcEncryptionSwitch( |
297 base::CommandLine* to_command_line, | 299 base::CommandLine* to_command_line, |
298 const base::CommandLine& from_command_line, | 300 const base::CommandLine& from_command_line, |
299 VersionInfo::Channel channel); | 301 VersionInfo::Channel channel); |
300 #endif | 302 #endif |
301 | 303 |
302 #if defined(ENABLE_PLUGINS) | 304 #if defined(ENABLE_PLUGINS) |
303 // Set of origins that can use TCP/UDP private APIs from NaCl. | 305 // Set of origins that can use TCP/UDP private APIs from NaCl. |
304 std::set<std::string> allowed_socket_origins_; | 306 std::set<std::string> allowed_socket_origins_; |
305 // Set of origins that can get a handle for FileIO from NaCl. | 307 // Set of origins that can get a handle for FileIO from NaCl. |
306 std::set<std::string> allowed_file_handle_origins_; | 308 std::set<std::string> allowed_file_handle_origins_; |
| 309 // Set of origins that can use "dev chanel" APIs from NaCl, even on stable |
| 310 // versions of Chrome. |
| 311 std::set<std::string> allowed_dev_channel_origins_; |
307 #endif | 312 #endif |
308 scoped_ptr<extensions::BrowserPermissionsPolicyDelegate> | 313 scoped_ptr<extensions::BrowserPermissionsPolicyDelegate> |
309 permissions_policy_delegate_; | 314 permissions_policy_delegate_; |
310 | 315 |
311 // The prerender tracker used to determine whether a render process is used | 316 // The prerender tracker used to determine whether a render process is used |
312 // for prerendering and an override cookie store must be provided. | 317 // for prerendering and an override cookie store must be provided. |
313 // This needs to be kept as a member rather than just looked up from | 318 // This needs to be kept as a member rather than just looked up from |
314 // the profile due to initialization ordering, as well as due to threading. | 319 // the profile due to initialization ordering, as well as due to threading. |
315 // It is initialized on the UI thread when the ResoureDispatcherHost is | 320 // It is initialized on the UI thread when the ResoureDispatcherHost is |
316 // created. It is used only the IO thread. | 321 // created. It is used only the IO thread. |
317 prerender::PrerenderTracker* prerender_tracker_; | 322 prerender::PrerenderTracker* prerender_tracker_; |
318 | 323 |
319 friend class DisableWebRtcEncryptionFlagTest; | 324 friend class DisableWebRtcEncryptionFlagTest; |
320 | 325 |
321 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 326 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
322 }; | 327 }; |
323 | 328 |
324 } // namespace chrome | 329 } // namespace chrome |
325 | 330 |
326 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 331 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |