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

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

Issue 11624036: Move the parsing of homepage_url" and "devtools_page" out of Extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments addressed Created 8 years 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
new file mode 100644
index 0000000000000000000000000000000000000000..b2d164acca6643d287fdb34914f049a40b8ee520
--- /dev/null
+++ b/chrome/browser/extensions/manifest_url_parser.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2012 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_URL_PARSER_H_
+#define CHROME_BROWSER_EXTENSIONS_MANIFEST_URL_PARSER_H_
+
+#include "base/basictypes.h"
+#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
+
+class Profile;
+
+namespace extensions {
+
+class ManifestURLParser : public ProfileKeyedAPI {
+ public:
+ explicit ManifestURLParser(Profile* profile);
+ virtual ~ManifestURLParser();
+
+ private:
+ friend class ProfileKeyedAPIFactory<ManifestURLParser>;
+
+ // ProfileKeyedAPI implementation.
+ static const char* service_name() {
+ return "ManifestURLParser";
+ }
+ static const bool kServiceIsNULLWhileTesting = true;
+
+ DISALLOW_COPY_AND_ASSIGN(ManifestURLParser);
+};
+
+template <>
+ProfileKeyedAPIFactory<ManifestURLParser>*
+ProfileKeyedAPIFactory<ManifestURLParser>::GetInstance();
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_MANIFEST_URL_PARSER_H_

Powered by Google App Engine
This is Rietveld 408576698