| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 void ContentBrowserClient::RequestPermission( | 222 void ContentBrowserClient::RequestPermission( |
| 223 PermissionType permission, | 223 PermissionType permission, |
| 224 WebContents* web_contents, | 224 WebContents* web_contents, |
| 225 int bridge_id, | 225 int bridge_id, |
| 226 const GURL& requesting_frame, | 226 const GURL& requesting_frame, |
| 227 bool user_gesture, | 227 bool user_gesture, |
| 228 const base::Callback<void(bool)>& result_callback) { | 228 const base::Callback<void(bool)>& result_callback) { |
| 229 result_callback.Run(true); | 229 result_callback.Run(true); |
| 230 } | 230 } |
| 231 | 231 |
| 232 PermissionStatus ContentBrowserClient::GetPermissionStatus( | |
| 233 PermissionType permission, | |
| 234 BrowserContext* browser_context, | |
| 235 const GURL& requesting_origin, | |
| 236 const GURL& embedding_origin) { | |
| 237 return PERMISSION_STATUS_DENIED; | |
| 238 } | |
| 239 | |
| 240 bool ContentBrowserClient::CanCreateWindow( | 232 bool ContentBrowserClient::CanCreateWindow( |
| 241 const GURL& opener_url, | 233 const GURL& opener_url, |
| 242 const GURL& opener_top_level_frame_url, | 234 const GURL& opener_top_level_frame_url, |
| 243 const GURL& source_origin, | 235 const GURL& source_origin, |
| 244 WindowContainerType container_type, | 236 WindowContainerType container_type, |
| 245 const GURL& target_url, | 237 const GURL& target_url, |
| 246 const Referrer& referrer, | 238 const Referrer& referrer, |
| 247 WindowOpenDisposition disposition, | 239 WindowOpenDisposition disposition, |
| 248 const blink::WebWindowFeatures& features, | 240 const blink::WebWindowFeatures& features, |
| 249 bool user_gesture, | 241 bool user_gesture, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 | 331 |
| 340 #if defined(VIDEO_HOLE) | 332 #if defined(VIDEO_HOLE) |
| 341 ExternalVideoSurfaceContainer* | 333 ExternalVideoSurfaceContainer* |
| 342 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 334 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
| 343 WebContents* web_contents) { | 335 WebContents* web_contents) { |
| 344 return NULL; | 336 return NULL; |
| 345 } | 337 } |
| 346 #endif | 338 #endif |
| 347 | 339 |
| 348 } // namespace content | 340 } // namespace content |
| OLD | NEW |