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

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

Issue 11660016: Move the parsing of "chrome_url_overrides" out of Extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: patch-rebased Created 7 years, 11 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/extension_web_ui.cc ('k') | chrome/browser/extensions/manifest_url_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/manifest_url_parser.h
diff --git a/chrome/browser/extensions/manifest_url_parser.h b/chrome/browser/extensions/manifest_url_parser.h
index c7d6a231348a42ad644849886fcda00fa17f2c1a..4484d1ecbb164b43887ecf7f2d56e203c165440e 100644
--- a/chrome/browser/extensions/manifest_url_parser.h
+++ b/chrome/browser/extensions/manifest_url_parser.h
@@ -7,12 +7,15 @@
#include "base/basictypes.h"
#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
+#include "content/public/browser/notification_observer.h"
+#include "content/public/browser/notification_registrar.h"
class Profile;
namespace extensions {
-class ManifestURLParser : public ProfileKeyedAPI {
+class ManifestURLParser : public ProfileKeyedAPI,
+ public content::NotificationObserver {
public:
explicit ManifestURLParser(Profile* profile);
virtual ~ManifestURLParser();
@@ -20,6 +23,11 @@ class ManifestURLParser : public ProfileKeyedAPI {
// ProfileKeyedAPI implementation.
static ProfileKeyedAPIFactory<ManifestURLParser>* GetFactoryInstance();
+ // content::NotificationObserver implementation.
+ virtual void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) OVERRIDE;
+
private:
friend class ProfileKeyedAPIFactory<ManifestURLParser>;
@@ -29,6 +37,9 @@ class ManifestURLParser : public ProfileKeyedAPI {
}
static const bool kServiceIsNULLWhileTesting = true;
+ Profile* const profile_;
+ content::NotificationRegistrar registrar_;
+
DISALLOW_COPY_AND_ASSIGN(ManifestURLParser);
};
« no previous file with comments | « chrome/browser/extensions/extension_web_ui.cc ('k') | chrome/browser/extensions/manifest_url_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698