| 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_
|
|
|