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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 } | 235 } |
236 | 236 |
237 PermissionStatus ContentBrowserClient::GetPermissionStatus( | 237 PermissionStatus ContentBrowserClient::GetPermissionStatus( |
238 PermissionType permission, | 238 PermissionType permission, |
239 BrowserContext* browser_context, | 239 BrowserContext* browser_context, |
240 const GURL& requesting_origin, | 240 const GURL& requesting_origin, |
241 const GURL& embedding_origin) { | 241 const GURL& embedding_origin) { |
242 return PERMISSION_STATUS_DENIED; | 242 return PERMISSION_STATUS_DENIED; |
243 } | 243 } |
244 | 244 |
| 245 int ContentBrowserClient::SubscribePermissionStatusChange( |
| 246 PermissionType permission, |
| 247 BrowserContext* browser_context, |
| 248 const GURL& requesting_origin, |
| 249 const GURL& embedding_origin, |
| 250 const base::Callback<void(PermissionStatus)>& callback) { |
| 251 return 0; |
| 252 } |
| 253 |
245 bool ContentBrowserClient::CanCreateWindow( | 254 bool ContentBrowserClient::CanCreateWindow( |
246 const GURL& opener_url, | 255 const GURL& opener_url, |
247 const GURL& opener_top_level_frame_url, | 256 const GURL& opener_top_level_frame_url, |
248 const GURL& source_origin, | 257 const GURL& source_origin, |
249 WindowContainerType container_type, | 258 WindowContainerType container_type, |
250 const GURL& target_url, | 259 const GURL& target_url, |
251 const Referrer& referrer, | 260 const Referrer& referrer, |
252 WindowOpenDisposition disposition, | 261 WindowOpenDisposition disposition, |
253 const blink::WebWindowFeatures& features, | 262 const blink::WebWindowFeatures& features, |
254 bool user_gesture, | 263 bool user_gesture, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 | 370 |
362 #if defined(VIDEO_HOLE) | 371 #if defined(VIDEO_HOLE) |
363 ExternalVideoSurfaceContainer* | 372 ExternalVideoSurfaceContainer* |
364 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 373 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
365 WebContents* web_contents) { | 374 WebContents* web_contents) { |
366 return nullptr; | 375 return nullptr; |
367 } | 376 } |
368 #endif | 377 #endif |
369 | 378 |
370 } // namespace content | 379 } // namespace content |
OLD | NEW |