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