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

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

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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 WebContents* web_contents, 438 WebContents* web_contents,
439 const GURL& frame_url, 439 const GURL& frame_url,
440 const GURL& main_frame_url) {} 440 const GURL& main_frame_url) {}
441 441
442 virtual PermissionStatus GetPermissionStatus( 442 virtual PermissionStatus GetPermissionStatus(
443 PermissionType permission, 443 PermissionType permission,
444 BrowserContext* browser_context, 444 BrowserContext* browser_context,
445 const GURL& requesting_origin, 445 const GURL& requesting_origin,
446 const GURL& embedding_origin); 446 const GURL& embedding_origin);
447 447
448 virtual PermissionStatus RevokePermission(
449 PermissionType permission,
450 BrowserContext* browser_context,
451 const GURL& requesting_origin,
452 const GURL& embedding_origin);
453
448 // Returns true if the given page is allowed to open a window of the given 454 // Returns true if the given page is allowed to open a window of the given
449 // type. If true is returned, |no_javascript_access| will indicate whether 455 // type. If true is returned, |no_javascript_access| will indicate whether
450 // the window that is created should be scriptable/in the same process. 456 // the window that is created should be scriptable/in the same process.
451 // This is called on the IO thread. 457 // This is called on the IO thread.
452 virtual bool CanCreateWindow(const GURL& opener_url, 458 virtual bool CanCreateWindow(const GURL& opener_url,
453 const GURL& opener_top_level_frame_url, 459 const GURL& opener_top_level_frame_url,
454 const GURL& source_origin, 460 const GURL& source_origin,
455 WindowContainerType container_type, 461 WindowContainerType container_type,
456 const GURL& target_url, 462 const GURL& target_url,
457 const Referrer& referrer, 463 const Referrer& referrer,
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
612 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 618 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
613 // implementation. Return NULL to disable external surface video. 619 // implementation. Return NULL to disable external surface video.
614 virtual ExternalVideoSurfaceContainer* 620 virtual ExternalVideoSurfaceContainer*
615 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 621 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
616 #endif 622 #endif
617 }; 623 };
618 624
619 } // namespace content 625 } // namespace content
620 626
621 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 627 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698