| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 virtual blink::WebNotificationPresenter::Permission | 202 virtual blink::WebNotificationPresenter::Permission |
| 203 CheckDesktopNotificationPermission( | 203 CheckDesktopNotificationPermission( |
| 204 const GURL& source_origin, | 204 const GURL& source_origin, |
| 205 content::ResourceContext* context, | 205 content::ResourceContext* context, |
| 206 int render_process_id) OVERRIDE; | 206 int render_process_id) OVERRIDE; |
| 207 virtual void ShowDesktopNotification( | 207 virtual void ShowDesktopNotification( |
| 208 const content::ShowDesktopNotificationHostMsgParams& params, | 208 const content::ShowDesktopNotificationHostMsgParams& params, |
| 209 content::RenderFrameHost* render_frame_host, | 209 content::RenderFrameHost* render_frame_host, |
| 210 content::DesktopNotificationDelegate* delegate, | 210 content::DesktopNotificationDelegate* delegate, |
| 211 base::Closure* cancel_callback) OVERRIDE; | 211 base::Closure* cancel_callback) OVERRIDE; |
| 212 virtual void RequestGeolocationPermission( |
| 213 content::WebContents* web_contents, |
| 214 int bridge_id, |
| 215 const GURL& requesting_frame, |
| 216 bool user_gesture, |
| 217 base::Callback<void(bool)> result_callback, |
| 218 base::Closure* cancel_callback) OVERRIDE; |
| 212 virtual bool CanCreateWindow(const GURL& opener_url, | 219 virtual bool CanCreateWindow(const GURL& opener_url, |
| 213 const GURL& opener_top_level_frame_url, | 220 const GURL& opener_top_level_frame_url, |
| 214 const GURL& source_origin, | 221 const GURL& source_origin, |
| 215 WindowContainerType container_type, | 222 WindowContainerType container_type, |
| 216 const GURL& target_url, | 223 const GURL& target_url, |
| 217 const content::Referrer& referrer, | 224 const content::Referrer& referrer, |
| 218 WindowOpenDisposition disposition, | 225 WindowOpenDisposition disposition, |
| 219 const blink::WebWindowFeatures& features, | 226 const blink::WebWindowFeatures& features, |
| 220 bool user_gesture, | 227 bool user_gesture, |
| 221 bool opener_suppressed, | 228 bool opener_suppressed, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 virtual void GetAdditionalAllowedSchemesForFileSystem( | 264 virtual void GetAdditionalAllowedSchemesForFileSystem( |
| 258 std::vector<std::string>* additional_schemes) OVERRIDE; | 265 std::vector<std::string>* additional_schemes) OVERRIDE; |
| 259 virtual void GetURLRequestAutoMountHandlers( | 266 virtual void GetURLRequestAutoMountHandlers( |
| 260 std::vector<fileapi::URLRequestAutoMountHandler>* handlers) OVERRIDE; | 267 std::vector<fileapi::URLRequestAutoMountHandler>* handlers) OVERRIDE; |
| 261 virtual void GetAdditionalFileSystemBackends( | 268 virtual void GetAdditionalFileSystemBackends( |
| 262 content::BrowserContext* browser_context, | 269 content::BrowserContext* browser_context, |
| 263 const base::FilePath& storage_partition_path, | 270 const base::FilePath& storage_partition_path, |
| 264 ScopedVector<fileapi::FileSystemBackend>* additional_backends) OVERRIDE; | 271 ScopedVector<fileapi::FileSystemBackend>* additional_backends) OVERRIDE; |
| 265 virtual content::DevToolsManagerDelegate* | 272 virtual content::DevToolsManagerDelegate* |
| 266 GetDevToolsManagerDelegate() OVERRIDE; | 273 GetDevToolsManagerDelegate() OVERRIDE; |
| 274 virtual bool IsPluginAllowedToCallRequestOSFileHandle( |
| 275 content::BrowserContext* browser_context, |
| 276 const GURL& url) OVERRIDE; |
| 277 virtual bool IsPluginAllowedToUseDevChannelAPIs() OVERRIDE; |
| 278 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( |
| 279 int render_process_id) OVERRIDE; |
| 267 | 280 |
| 268 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 281 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 269 virtual void GetAdditionalMappedFilesForChildProcess( | 282 virtual void GetAdditionalMappedFilesForChildProcess( |
| 270 const base::CommandLine& command_line, | 283 const base::CommandLine& command_line, |
| 271 int child_process_id, | 284 int child_process_id, |
| 272 std::vector<content::FileDescriptorInfo>* mappings) OVERRIDE; | 285 std::vector<content::FileDescriptorInfo>* mappings) OVERRIDE; |
| 273 #endif | 286 #endif |
| 274 #if defined(OS_WIN) | 287 #if defined(OS_WIN) |
| 275 virtual const wchar_t* GetResourceDllName() OVERRIDE; | 288 virtual const wchar_t* GetResourceDllName() OVERRIDE; |
| 276 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, | 289 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, |
| 277 bool* success) OVERRIDE; | 290 bool* success) OVERRIDE; |
| 278 #endif | 291 #endif |
| 279 | 292 |
| 280 virtual bool IsPluginAllowedToCallRequestOSFileHandle( | |
| 281 content::BrowserContext* browser_context, | |
| 282 const GURL& url) OVERRIDE; | |
| 283 | |
| 284 virtual bool IsPluginAllowedToUseDevChannelAPIs() OVERRIDE; | |
| 285 | |
| 286 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( | |
| 287 int render_process_id) OVERRIDE; | |
| 288 | |
| 289 private: | 293 private: |
| 290 #if defined(ENABLE_WEBRTC) | 294 #if defined(ENABLE_WEBRTC) |
| 291 // Copies disable WebRTC encryption switch depending on the channel. | 295 // Copies disable WebRTC encryption switch depending on the channel. |
| 292 static void MaybeCopyDisableWebRtcEncryptionSwitch( | 296 static void MaybeCopyDisableWebRtcEncryptionSwitch( |
| 293 base::CommandLine* to_command_line, | 297 base::CommandLine* to_command_line, |
| 294 const base::CommandLine& from_command_line, | 298 const base::CommandLine& from_command_line, |
| 295 VersionInfo::Channel channel); | 299 VersionInfo::Channel channel); |
| 296 #endif | 300 #endif |
| 297 | 301 |
| 298 #if defined(ENABLE_PLUGINS) | 302 #if defined(ENABLE_PLUGINS) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 313 prerender::PrerenderTracker* prerender_tracker_; | 317 prerender::PrerenderTracker* prerender_tracker_; |
| 314 | 318 |
| 315 friend class DisableWebRtcEncryptionFlagTest; | 319 friend class DisableWebRtcEncryptionFlagTest; |
| 316 | 320 |
| 317 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 321 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 318 }; | 322 }; |
| 319 | 323 |
| 320 } // namespace chrome | 324 } // namespace chrome |
| 321 | 325 |
| 322 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 326 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |