Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(614)

Side by Side Diff: content/public/browser/content_browser_client.cc

Issue 750633003: Implement HasPermission() method in PermissionService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 WebContents* web_contents,
243 const GURL& requesting_frame,
244 const base::Callback<void(bool)>& result_callback) {
245 result_callback.Run(true);
246 }
247
240 bool ContentBrowserClient::CanCreateWindow( 248 bool ContentBrowserClient::CanCreateWindow(
241 const GURL& opener_url, 249 const GURL& opener_url,
242 const GURL& opener_top_level_frame_url, 250 const GURL& opener_top_level_frame_url,
243 const GURL& source_origin, 251 const GURL& source_origin,
244 WindowContainerType container_type, 252 WindowContainerType container_type,
245 const GURL& target_url, 253 const GURL& target_url,
246 const Referrer& referrer, 254 const Referrer& referrer,
247 WindowOpenDisposition disposition, 255 WindowOpenDisposition disposition,
248 const blink::WebWindowFeatures& features, 256 const blink::WebWindowFeatures& features,
249 bool user_gesture, 257 bool user_gesture,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 #endif 351 #endif
344 352
345 bool ContentBrowserClient::CheckMediaAccessPermission( 353 bool ContentBrowserClient::CheckMediaAccessPermission(
346 BrowserContext* browser_context, 354 BrowserContext* browser_context,
347 const GURL& security_origin, 355 const GURL& security_origin,
348 MediaStreamType type) { 356 MediaStreamType type) {
349 return false; 357 return false;
350 } 358 }
351 359
352 } // namespace content 360 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698