| OLD | NEW |
| (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_ |
| OLD | NEW |