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

Unified Diff: chrome/browser/extensions/api/extension_urls/extension_urls_api.h

Issue 11742005: Move [Homepage,Options,Update,DevTools]URL out of Extension (Closed) Base URL: http://git.chromium.org/chromium/src.git@dc_unref_browser_action
Patch Set: 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/api/extension_urls/extension_urls_api.h
diff --git a/chrome/browser/extensions/api/extension_urls/extension_urls_api.h b/chrome/browser/extensions/api/extension_urls/extension_urls_api.h
new file mode 100644
index 0000000000000000000000000000000000000000..6280e4576cdf35885093b1df9b7b1996e1db42bf
--- /dev/null
+++ b/chrome/browser/extensions/api/extension_urls/extension_urls_api.h
@@ -0,0 +1,37 @@
+// 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_API_EXTENSION_URLS_EXTENSION_URLS_API_H_
+#define CHROME_BROWSER_EXTENSIONS_API_EXTENSION_URLS_EXTENSION_URLS_API_H_
+
+#include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
+#include "chrome/browser/profiles/profile_keyed_service.h"
+
+class Profile;
+
+namespace extensions {
+
+// The profile-keyed service that manages the extension urls API, including the
+// devtools url, the homepage url, the options url, and the homepage url.
+class ExtensionURLsAPI : public ProfileKeyedAPI {
+ public:
+ explicit ExtensionURLsAPI(Profile* profile);
+ virtual ~ExtensionURLsAPI();
+
+ private:
+ friend class ProfileKeyedAPIFactory<ExtensionURLsAPI>;
+
+ // ProfileKeyedAPI implementation.
+ static const char* service_name() {
+ return "ExtensionURLsAPI";
+ }
+};
+
+template <>
+ProfileKeyedAPIFactory<ExtensionURLsAPI>*
+ProfileKeyedAPIFactory<ExtensionURLsAPI>::GetInstance();
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_EXTENSION_URLS_EXTENSION_URLS_API_H_

Powered by Google App Engine
This is Rietveld 408576698