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

Unified Diff: chrome/browser/chrome_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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chrome_content_browser_client.h
diff --git a/chrome/browser/chrome_content_browser_client.h b/chrome/browser/chrome_content_browser_client.h
index 884ae0d3176e7cba4486f66aae173f5ee7b88a5e..0f3c123a68c7f8fb1711743ad438d67546e47e23 100644
--- a/chrome/browser/chrome_content_browser_client.h
+++ b/chrome/browser/chrome_content_browser_client.h
@@ -18,6 +18,8 @@
#include "content/public/browser/content_browser_client.h"
class ChromeContentBrowserClientParts;
+class PermissionContextBase;
+class Profile;
namespace base {
class CommandLine;
@@ -194,6 +196,11 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient {
content::BrowserContext* browser_context,
const GURL& requesting_origin,
const GURL& embedding_origin) override;
+ content::PermissionStatus RevokePermission(
+ content::PermissionType permission,
+ content::BrowserContext* browser_context,
+ const GURL& requesting_origin,
+ const GURL& embedding_origin) override;
void CancelPermissionRequest(content::PermissionType permission,
content::WebContents* web_contents,
int bridge_id,
@@ -290,6 +297,11 @@ class ChromeContentBrowserClient : public content::ContentBrowserClient {
base::Callback<void(bool)> callback,
bool allow);
+ // Returns
+ PermissionContextBase* GetPermissionContextFromProfile(
+ Profile* profile,
+ content::PermissionType permission);
+
#if defined(ENABLE_EXTENSIONS)
void GuestPermissionRequestHelper(
const GURL& url,
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | chrome/browser/chrome_content_browser_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698