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

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

Issue 819463002: Implement RevokePermission() method in PermissionService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 PermissionStatus ContentBrowserClient::RevokePermission(
246 PermissionType permission,
247 BrowserContext* browser_context,
248 const GURL& requesting_origin,
249 const GURL& embedding_origin) {
250 return PERMISSION_STATUS_ASK;
251 }
252
245 bool ContentBrowserClient::CanCreateWindow( 253 bool ContentBrowserClient::CanCreateWindow(
246 const GURL& opener_url, 254 const GURL& opener_url,
247 const GURL& opener_top_level_frame_url, 255 const GURL& opener_top_level_frame_url,
248 const GURL& source_origin, 256 const GURL& source_origin,
249 WindowContainerType container_type, 257 WindowContainerType container_type,
250 const GURL& target_url, 258 const GURL& target_url,
251 const Referrer& referrer, 259 const Referrer& referrer,
252 WindowOpenDisposition disposition, 260 WindowOpenDisposition disposition,
253 const blink::WebWindowFeatures& features, 261 const blink::WebWindowFeatures& features,
254 bool user_gesture, 262 bool user_gesture,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 352
345 #if defined(VIDEO_HOLE) 353 #if defined(VIDEO_HOLE)
346 ExternalVideoSurfaceContainer* 354 ExternalVideoSurfaceContainer*
347 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 355 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
348 WebContents* web_contents) { 356 WebContents* web_contents) {
349 return NULL; 357 return NULL;
350 } 358 }
351 #endif 359 #endif
352 360
353 } // namespace content 361 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698