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 "content/public/browser/client_certificate_delegate.h" | 8 #include "content/public/browser/client_certificate_delegate.h" |
9 #include "ui/gfx/image/image_skia.h" | 9 #include "ui/gfx/image/image_skia.h" |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 | 216 |
217 MediaObserver* ContentBrowserClient::GetMediaObserver() { | 217 MediaObserver* ContentBrowserClient::GetMediaObserver() { |
218 return nullptr; | 218 return nullptr; |
219 } | 219 } |
220 | 220 |
221 PlatformNotificationService* | 221 PlatformNotificationService* |
222 ContentBrowserClient::GetPlatformNotificationService() { | 222 ContentBrowserClient::GetPlatformNotificationService() { |
223 return nullptr; | 223 return nullptr; |
224 } | 224 } |
225 | 225 |
226 void ContentBrowserClient::RequestPermission( | |
227 PermissionType permission, | |
228 WebContents* web_contents, | |
229 int bridge_id, | |
230 const GURL& requesting_frame, | |
231 bool user_gesture, | |
232 const base::Callback<void(PermissionStatus)>& callback) { | |
233 callback.Run(PERMISSION_STATUS_DENIED); | |
234 } | |
235 | |
236 PermissionStatus ContentBrowserClient::GetPermissionStatus( | |
237 PermissionType permission, | |
238 BrowserContext* browser_context, | |
239 const GURL& requesting_origin, | |
240 const GURL& embedding_origin) { | |
241 return PERMISSION_STATUS_DENIED; | |
242 } | |
243 | |
244 bool ContentBrowserClient::CanCreateWindow( | 226 bool ContentBrowserClient::CanCreateWindow( |
245 const GURL& opener_url, | 227 const GURL& opener_url, |
246 const GURL& opener_top_level_frame_url, | 228 const GURL& opener_top_level_frame_url, |
247 const GURL& source_origin, | 229 const GURL& source_origin, |
248 WindowContainerType container_type, | 230 WindowContainerType container_type, |
249 const GURL& target_url, | 231 const GURL& target_url, |
250 const Referrer& referrer, | 232 const Referrer& referrer, |
251 WindowOpenDisposition disposition, | 233 WindowOpenDisposition disposition, |
252 const blink::WebWindowFeatures& features, | 234 const blink::WebWindowFeatures& features, |
253 bool user_gesture, | 235 bool user_gesture, |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 | 337 |
356 #if defined(VIDEO_HOLE) | 338 #if defined(VIDEO_HOLE) |
357 ExternalVideoSurfaceContainer* | 339 ExternalVideoSurfaceContainer* |
358 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 340 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
359 WebContents* web_contents) { | 341 WebContents* web_contents) { |
360 return nullptr; | 342 return nullptr; |
361 } | 343 } |
362 #endif | 344 #endif |
363 | 345 |
364 } // namespace content | 346 } // namespace content |
OLD | NEW |