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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
230 void ContentBrowserClient::RequestPermission( | 230 void ContentBrowserClient::RequestPermission( |
231 PermissionType permission, | 231 PermissionType permission, |
232 WebContents* web_contents, | 232 WebContents* web_contents, |
233 int bridge_id, | 233 int bridge_id, |
234 const GURL& requesting_frame, | 234 const GURL& requesting_frame, |
235 bool user_gesture, | 235 bool user_gesture, |
236 const base::Callback<void(bool)>& result_callback) { | 236 const base::Callback<void(bool)>& result_callback) { |
237 result_callback.Run(true); | 237 result_callback.Run(true); |
238 } | 238 } |
239 | 239 |
240 void ContentBrowserClient::HasPermission( | |
241 PermissionType permission, | |
242 BrowserContext* browser_context, | |
243 const GURL& requesting_origin, | |
244 const GURL& embedding_origin, | |
245 const PermissionStatusCallback& result_callback) { | |
246 result_callback.Run(PERMISSION_STATUS_ASK); | |
mlamouri (slow - plz ping)
2014/11/24 19:06:01
nit: PERMISSION_STATUS_DENIED.
timvolodine
2014/11/27 17:53:42
changed to denied, but, RequestPermission above do
| |
247 } | |
248 | |
240 bool ContentBrowserClient::CanCreateWindow( | 249 bool ContentBrowserClient::CanCreateWindow( |
241 const GURL& opener_url, | 250 const GURL& opener_url, |
242 const GURL& opener_top_level_frame_url, | 251 const GURL& opener_top_level_frame_url, |
243 const GURL& source_origin, | 252 const GURL& source_origin, |
244 WindowContainerType container_type, | 253 WindowContainerType container_type, |
245 const GURL& target_url, | 254 const GURL& target_url, |
246 const Referrer& referrer, | 255 const Referrer& referrer, |
247 WindowOpenDisposition disposition, | 256 WindowOpenDisposition disposition, |
248 const blink::WebWindowFeatures& features, | 257 const blink::WebWindowFeatures& features, |
249 bool user_gesture, | 258 bool user_gesture, |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
343 #endif | 352 #endif |
344 | 353 |
345 bool ContentBrowserClient::CheckMediaAccessPermission( | 354 bool ContentBrowserClient::CheckMediaAccessPermission( |
346 BrowserContext* browser_context, | 355 BrowserContext* browser_context, |
347 const GURL& security_origin, | 356 const GURL& security_origin, |
348 MediaStreamType type) { | 357 MediaStreamType type) { |
349 return false; | 358 return false; |
350 } | 359 } |
351 | 360 |
352 } // namespace content | 361 } // namespace content |
OLD | NEW |