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

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

Issue 14694010: Consolidate manifest handler registration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
Index: chrome/browser/extensions/extension_web_ui_override_registrar.h
diff --git a/chrome/browser/extensions/chrome_manifest_parser.h b/chrome/browser/extensions/extension_web_ui_override_registrar.h
similarity index 56%
rename from chrome/browser/extensions/chrome_manifest_parser.h
rename to chrome/browser/extensions/extension_web_ui_override_registrar.h
index eaa2633df5a377442547961a36b1f4f0ce52a392..782cc51b54770e56cf6737078d16bac6442df528 100644
--- a/chrome/browser/extensions/chrome_manifest_parser.h
+++ b/chrome/browser/extensions/extension_web_ui_override_registrar.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_CHROME_MANIFEST_PARSER_H_
-#define CHROME_BROWSER_EXTENSIONS_CHROME_MANIFEST_PARSER_H_
+#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_OVERRIDE_REGISTRAR_H_
+#define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_OVERRIDE_REGISTRAR_H_
#include "base/basictypes.h"
#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
@@ -14,14 +14,15 @@ class Profile;
namespace extensions {
-class ChromeManifestParser : public ProfileKeyedAPI,
+class ExtensionWebUIOverrideRegistrar : public ProfileKeyedAPI,
public content::NotificationObserver {
public:
- explicit ChromeManifestParser(Profile* profile);
- virtual ~ChromeManifestParser();
+ explicit ExtensionWebUIOverrideRegistrar(Profile* profile);
+ virtual ~ExtensionWebUIOverrideRegistrar();
// ProfileKeyedAPI implementation.
- static ProfileKeyedAPIFactory<ChromeManifestParser>* GetFactoryInstance();
+ static ProfileKeyedAPIFactory<ExtensionWebUIOverrideRegistrar>*
+ GetFactoryInstance();
// content::NotificationObserver implementation.
virtual void Observe(int type,
@@ -29,17 +30,19 @@ class ChromeManifestParser : public ProfileKeyedAPI,
const content::NotificationDetails& details) OVERRIDE;
private:
- friend class ProfileKeyedAPIFactory<ChromeManifestParser>;
+ friend class ProfileKeyedAPIFactory<ExtensionWebUIOverrideRegistrar>;
// ProfileKeyedAPI implementation.
- static const char* service_name() { return "ChromeManifestParser"; }
+ static const char* service_name() {
+ return "ExtensionWebUIOverrideRegistrar";
+ }
Profile* const profile_;
content::NotificationRegistrar registrar_;
- DISALLOW_COPY_AND_ASSIGN(ChromeManifestParser);
+ DISALLOW_COPY_AND_ASSIGN(ExtensionWebUIOverrideRegistrar);
};
} // namespace extensions
-#endif // CHROME_BROWSER_EXTENSIONS_CHROME_MANIFEST_PARSER_H_
+#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_OVERRIDE_REGISTRAR_H_
« no previous file with comments | « chrome/browser/extensions/extension_ui_unittest.cc ('k') | chrome/browser/extensions/extension_web_ui_override_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698