| 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 #include "content/public/browser/content_browser_client.h" | 5 #include "content/public/browser/content_browser_client.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "ui/gfx/image/image_skia.h" | 8 #include "ui/gfx/image/image_skia.h" |
| 9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
| 10 | 10 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 } | 204 } |
| 205 | 205 |
| 206 blink::WebNotificationPresenter::Permission | 206 blink::WebNotificationPresenter::Permission |
| 207 ContentBrowserClient::CheckDesktopNotificationPermission( | 207 ContentBrowserClient::CheckDesktopNotificationPermission( |
| 208 const GURL& source_origin, | 208 const GURL& source_origin, |
| 209 ResourceContext* context, | 209 ResourceContext* context, |
| 210 int render_process_id) { | 210 int render_process_id) { |
| 211 return blink::WebNotificationPresenter::PermissionAllowed; | 211 return blink::WebNotificationPresenter::PermissionAllowed; |
| 212 } | 212 } |
| 213 | 213 |
| 214 void ContentBrowserClient::RequestGeolocationPermission( |
| 215 WebContents* web_contents, |
| 216 int bridge_id, |
| 217 const GURL& requesting_frame, |
| 218 bool user_gesture, |
| 219 base::Callback<void(bool)> result_callback, |
| 220 base::Closure* cancel_callback) { |
| 221 result_callback.Run(true); |
| 222 } |
| 223 |
| 214 bool ContentBrowserClient::CanCreateWindow( | 224 bool ContentBrowserClient::CanCreateWindow( |
| 215 const GURL& opener_url, | 225 const GURL& opener_url, |
| 216 const GURL& opener_top_level_frame_url, | 226 const GURL& opener_top_level_frame_url, |
| 217 const GURL& source_origin, | 227 const GURL& source_origin, |
| 218 WindowContainerType container_type, | 228 WindowContainerType container_type, |
| 219 const GURL& target_url, | 229 const GURL& target_url, |
| 220 const Referrer& referrer, | 230 const Referrer& referrer, |
| 221 WindowOpenDisposition disposition, | 231 WindowOpenDisposition disposition, |
| 222 const blink::WebWindowFeatures& features, | 232 const blink::WebWindowFeatures& features, |
| 223 bool user_gesture, | 233 bool user_gesture, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 } | 293 } |
| 284 | 294 |
| 285 VibrationProvider* ContentBrowserClient::OverrideVibrationProvider() { | 295 VibrationProvider* ContentBrowserClient::OverrideVibrationProvider() { |
| 286 return NULL; | 296 return NULL; |
| 287 } | 297 } |
| 288 | 298 |
| 289 DevToolsManagerDelegate* ContentBrowserClient::GetDevToolsManagerDelegate() { | 299 DevToolsManagerDelegate* ContentBrowserClient::GetDevToolsManagerDelegate() { |
| 290 return NULL; | 300 return NULL; |
| 291 } | 301 } |
| 292 | 302 |
| 293 #if defined(OS_WIN) | |
| 294 const wchar_t* ContentBrowserClient::GetResourceDllName() { | |
| 295 return NULL; | |
| 296 } | |
| 297 #endif | |
| 298 | |
| 299 bool ContentBrowserClient::IsPluginAllowedToCallRequestOSFileHandle( | 303 bool ContentBrowserClient::IsPluginAllowedToCallRequestOSFileHandle( |
| 300 BrowserContext* browser_context, | 304 BrowserContext* browser_context, |
| 301 const GURL& url) { | 305 const GURL& url) { |
| 302 return false; | 306 return false; |
| 303 } | 307 } |
| 304 | 308 |
| 305 bool ContentBrowserClient::IsPluginAllowedToUseDevChannelAPIs() { | 309 bool ContentBrowserClient::IsPluginAllowedToUseDevChannelAPIs() { |
| 306 return false; | 310 return false; |
| 307 } | 311 } |
| 308 | 312 |
| 309 net::CookieStore* ContentBrowserClient::OverrideCookieStoreForRenderProcess( | 313 net::CookieStore* ContentBrowserClient::OverrideCookieStoreForRenderProcess( |
| 310 int render_process_id) { | 314 int render_process_id) { |
| 311 return NULL; | 315 return NULL; |
| 312 } | 316 } |
| 313 | 317 |
| 318 #if defined(OS_WIN) |
| 319 const wchar_t* ContentBrowserClient::GetResourceDllName() { |
| 320 return NULL; |
| 321 } |
| 322 #endif |
| 323 |
| 314 #if defined(VIDEO_HOLE) | 324 #if defined(VIDEO_HOLE) |
| 315 ExternalVideoSurfaceContainer* | 325 ExternalVideoSurfaceContainer* |
| 316 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 326 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
| 317 WebContents* web_contents) { | 327 WebContents* web_contents) { |
| 318 return NULL; | 328 return NULL; |
| 319 } | 329 } |
| 320 #endif | 330 #endif |
| 321 | 331 |
| 322 } // namespace content | 332 } // namespace content |
| OLD | NEW |