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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_EXTENSION_URLS_EXTENSION_URLS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_EXTENSION_URLS_EXTENSION_URLS_API_H_
7
8 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
9 #include "chrome/browser/profiles/profile_keyed_service.h"
10
11 class Profile;
12
13 namespace extensions {
14
15 // The profile-keyed service that manages the extension urls API, including the
16 // devtools url, the homepage url, the options url, and the homepage url.
17 class ExtensionURLsAPI : public ProfileKeyedAPI {
18 public:
19 explicit ExtensionURLsAPI(Profile* profile);
20 virtual ~ExtensionURLsAPI();
21
22 private:
23 friend class ProfileKeyedAPIFactory<ExtensionURLsAPI>;
24
25 // ProfileKeyedAPI implementation.
26 static const char* service_name() {
27 return "ExtensionURLsAPI";
28 }
29 };
30
31 template <>
32 ProfileKeyedAPIFactory<ExtensionURLsAPI>*
33 ProfileKeyedAPIFactory<ExtensionURLsAPI>::GetInstance();
34
35 } // namespace extensions
36
37 #endif // CHROME_BROWSER_EXTENSIONS_API_EXTENSION_URLS_EXTENSION_URLS_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698