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

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

Issue 10824204: Move small c/b/extensions classes into extensions namespace no.2 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq + nitfix Created 8 years, 4 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 | « chrome/browser/extensions/extensions_startup.cc ('k') | chrome/browser/extensions/navigation_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/navigation_observer.h
diff --git a/chrome/browser/extensions/extension_navigation_observer.h b/chrome/browser/extensions/navigation_observer.h
similarity index 74%
rename from chrome/browser/extensions/extension_navigation_observer.h
rename to chrome/browser/extensions/navigation_observer.h
index feb653f45288149edcad28c3c2ee69c985adb163..480f9833585e8d1203168e5b8a9b79e3b3309cd8 100644
--- a/chrome/browser/extensions/extension_navigation_observer.h
+++ b/chrome/browser/extensions/navigation_observer.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_EXTENSION_NAVIGATION_OBSERVER_H_
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_NAVIGATION_OBSERVER_H_
+#ifndef CHROME_BROWSER_EXTENSIONS_NAVIGATION_OBSERVER_H_
+#define CHROME_BROWSER_EXTENSIONS_NAVIGATION_OBSERVER_H_
#include <set>
#include <string>
@@ -18,15 +18,17 @@ namespace content {
class NavigationController;
}
-// The ExtensionNavigationObserver listens to navigation notifications. If the
-// user navigates into an extension that has been disabled due to a permission
+namespace extensions {
+
+// The NavigationObserver listens to navigation notifications. If the user
+// navigates into an extension that has been disabled due to a permission
// increase, it prompts the user to accept the new permissions and re-enables
// the extension.
-class ExtensionNavigationObserver : public ExtensionInstallPrompt::Delegate,
- public content::NotificationObserver {
+class NavigationObserver : public ExtensionInstallPrompt::Delegate,
+ public content::NotificationObserver {
public:
- explicit ExtensionNavigationObserver(Profile* profile);
- virtual ~ExtensionNavigationObserver();
+ explicit NavigationObserver(Profile* profile);
+ virtual ~NavigationObserver();
// content::NotificationObserver
virtual void Observe(int type,
@@ -59,6 +61,10 @@ class ExtensionNavigationObserver : public ExtensionInstallPrompt::Delegate,
// The extension ids we've already prompted the user about.
std::set<std::string> prompted_extensions_;
+
+ DISALLOW_COPY_AND_ASSIGN(NavigationObserver);
};
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_NAVIGATION_OBSERVER_H_
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_NAVIGATION_OBSERVER_H_
« no previous file with comments | « chrome/browser/extensions/extensions_startup.cc ('k') | chrome/browser/extensions/navigation_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698