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

Unified Diff: chrome/browser/extensions/active_tab_permission_granter.h

Issue 10880064: Make extension commands grant the activeTab permission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 8 years, 3 months 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
« no previous file with comments | « no previous file | chrome/browser/extensions/active_tab_permission_granter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/active_tab_permission_granter.h
diff --git a/chrome/browser/extensions/active_tab_permission_manager.h b/chrome/browser/extensions/active_tab_permission_granter.h
similarity index 84%
rename from chrome/browser/extensions/active_tab_permission_manager.h
rename to chrome/browser/extensions/active_tab_permission_granter.h
index 6021cfb9a1bb6588d59cb5280aaeb0f98c6bbb38..8575d72f6a7ef5bddbe5c7666af5e0c3a161f38a 100644
--- a/chrome/browser/extensions/active_tab_permission_manager.h
+++ b/chrome/browser/extensions/active_tab_permission_granter.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_ACTIVE_TAB_PERMISSION_MANAGER_H_
-#define CHROME_BROWSER_EXTENSIONS_ACTIVE_TAB_PERMISSION_MANAGER_H_
+#ifndef CHROME_BROWSER_EXTENSIONS_ACTIVE_TAB_PERMISSION_GRANTER_H_
+#define CHROME_BROWSER_EXTENSIONS_ACTIVE_TAB_PERMISSION_GRANTER_H_
#include <set>
#include <string>
@@ -26,13 +26,13 @@ class Extension;
// Responsible for granting and revoking tab-specific permissions to extensions
// with the activeTab permission.
-class ActiveTabPermissionManager : public content::WebContentsObserver,
+class ActiveTabPermissionGranter : public content::WebContentsObserver,
public content::NotificationObserver {
public:
- ActiveTabPermissionManager(content::WebContents* web_contents,
+ ActiveTabPermissionGranter(content::WebContents* web_contents,
int tab_id,
Profile* profile);
- virtual ~ActiveTabPermissionManager();
+ virtual ~ActiveTabPermissionGranter();
// If |extension| has the activeTab permission, grants tab-specific
// permissions to it until the next page navigation or refresh.
@@ -72,9 +72,9 @@ class ActiveTabPermissionManager : public content::WebContentsObserver,
// Listen to extension unloaded notifications.
content::NotificationRegistrar registrar_;
- DISALLOW_COPY_AND_ASSIGN(ActiveTabPermissionManager);
+ DISALLOW_COPY_AND_ASSIGN(ActiveTabPermissionGranter);
};
} // namespace extensions
-#endif // CHROME_BROWSER_EXTENSIONS_ACTIVE_TAB_PERMISSION_MANAGER_H_
+#endif // CHROME_BROWSER_EXTENSIONS_ACTIVE_TAB_PERMISSION_GRANTER_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/active_tab_permission_granter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698