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

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

Issue 11821009: move 'web_accessible_resources' parsing out of Extension class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@url_parse
Patch Set: 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
Index: chrome/browser/extensions/manifest_web_parser.h
diff --git a/chrome/browser/extensions/manifest_web_parser.h b/chrome/browser/extensions/manifest_web_parser.h
new file mode 100644
index 0000000000000000000000000000000000000000..27718a10529b7cdf2299a6b34ca6fcbf04103758
--- /dev/null
+++ b/chrome/browser/extensions/manifest_web_parser.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_MANIFEST_WEB_PARSER_H_
+#define CHROME_BROWSER_EXTENSIONS_MANIFEST_WEB_PARSER_H_
+
+#include "base/basictypes.h"
+#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
+
+class Profile;
+
+namespace extensions {
+
+class ManifestWebParser : public ProfileKeyedAPI {
Yoyo Zhou 2013/01/10 00:37:58 This name doesn't make sense. "web" by itself does
Joe Thomas 2013/01/10 20:56:18 Done.
+ public:
+ explicit ManifestWebParser(Profile* profile);
+ virtual ~ManifestWebParser();
+
+ private:
+ friend class ProfileKeyedAPIFactory<ManifestWebParser>;
+
+ // ProfileKeyedAPI implementation.
+ static const char* service_name() {
+ return "ManifestWebParser";
+ }
+ static const bool kServiceIsNULLWhileTesting = true;
+
+ DISALLOW_COPY_AND_ASSIGN(ManifestWebParser);
+};
+
+template <>
+ProfileKeyedAPIFactory<ManifestWebParser>*
+ProfileKeyedAPIFactory<ManifestWebParser>::GetInstance();
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_MANIFEST_WEB_PARSER_H_

Powered by Google App Engine
This is Rietveld 408576698