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

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

Issue 14241002: Move the parsing of app.launch related keys out of Extension class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/app_launch_manifest_parser.h
diff --git a/chrome/browser/extensions/app_launch_manifest_parser.h b/chrome/browser/extensions/app_launch_manifest_parser.h
new file mode 100644
index 0000000000000000000000000000000000000000..818a05ea563654be7e9a4b5d0cbc265238566f93
--- /dev/null
+++ b/chrome/browser/extensions/app_launch_manifest_parser.h
@@ -0,0 +1,36 @@
+// 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_APP_LAUNCH_MANIFEST_PARSER_H_
+#define CHROME_BROWSER_EXTENSIONS_APP_LAUNCH_MANIFEST_PARSER_H_
+
+#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
+
+class Profile;
+
+namespace extensions {
+
+class AppLaunchManifestParser : public ProfileKeyedAPI {
+ public:
+ explicit AppLaunchManifestParser(Profile* profile);
+ virtual ~AppLaunchManifestParser();
+
+ // ProfileKeyedAPI implementation.
+ static ProfileKeyedAPIFactory<AppLaunchManifestParser>*
+ GetFactoryInstance();
+
+ private:
+ friend class ProfileKeyedAPIFactory<AppLaunchManifestParser>;
+
+ // ProfileKeyedAPI implementation.
+ static const char* service_name() {
+ return "AppLaunchManifestParser";
+ }
+
+ DISALLOW_COPY_AND_ASSIGN(AppLaunchManifestParser);
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_APP_LAUNCH_MANIFEST_PARSER_H_

Powered by Google App Engine
This is Rietveld 408576698