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

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: Review comments addressed Created 7 years, 12 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/manifest_url_parser.h
diff --git a/chrome/browser/extensions/manifest_url_parser.h b/chrome/browser/extensions/manifest_url_parser.h
index b2d164acca6643d287fdb34914f049a40b8ee520..fb560954b90cd7c2779c627e3410d4718b7b4ddd 100644
--- a/chrome/browser/extensions/manifest_url_parser.h
+++ b/chrome/browser/extensions/manifest_url_parser.h
@@ -7,16 +7,24 @@
#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();
+ // content::NotificationObserver implementation.
+ virtual void Observe(int type,
+ const content::NotificationSource& source,
+ const content::NotificationDetails& details) OVERRIDE;
+
private:
friend class ProfileKeyedAPIFactory<ManifestURLParser>;
@@ -26,6 +34,9 @@ class ManifestURLParser : public ProfileKeyedAPI {
}
static const bool kServiceIsNULLWhileTesting = true;
+ Profile* const profile_;
+ content::NotificationRegistrar registrar_;
+
DISALLOW_COPY_AND_ASSIGN(ManifestURLParser);
};

Powered by Google App Engine
This is Rietveld 408576698