| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "extensions/browser/api/extensions_api_client.h" | 10 #include "extensions/browser/api/extensions_api_client.h" |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 | 13 |
| 14 class ChromeMetricsPrivateDelegate; |
| 15 |
| 14 // Extra support for extensions APIs in Chrome. | 16 // Extra support for extensions APIs in Chrome. |
| 15 class ChromeExtensionsAPIClient : public ExtensionsAPIClient { | 17 class ChromeExtensionsAPIClient : public ExtensionsAPIClient { |
| 16 public: | 18 public: |
| 17 ChromeExtensionsAPIClient(); | 19 ChromeExtensionsAPIClient(); |
| 18 ~ChromeExtensionsAPIClient() override; | 20 ~ChromeExtensionsAPIClient() override; |
| 19 | 21 |
| 20 // ExtensionsApiClient implementation. | 22 // ExtensionsApiClient implementation. |
| 21 void AddAdditionalValueStoreCaches( | 23 void AddAdditionalValueStoreCaches( |
| 22 content::BrowserContext* context, | 24 content::BrowserContext* context, |
| 23 const scoped_refptr<ValueStoreFactory>& factory, | 25 const scoped_refptr<ValueStoreFactory>& factory, |
| (...skipping 19 matching lines...) Expand all Loading... |
| 43 std::unique_ptr<WebRequestEventRouterDelegate> | 45 std::unique_ptr<WebRequestEventRouterDelegate> |
| 44 CreateWebRequestEventRouterDelegate() const override; | 46 CreateWebRequestEventRouterDelegate() const override; |
| 45 scoped_refptr<ContentRulesRegistry> CreateContentRulesRegistry( | 47 scoped_refptr<ContentRulesRegistry> CreateContentRulesRegistry( |
| 46 content::BrowserContext* browser_context, | 48 content::BrowserContext* browser_context, |
| 47 RulesCacheDelegate* cache_delegate) const override; | 49 RulesCacheDelegate* cache_delegate) const override; |
| 48 std::unique_ptr<DevicePermissionsPrompt> CreateDevicePermissionsPrompt( | 50 std::unique_ptr<DevicePermissionsPrompt> CreateDevicePermissionsPrompt( |
| 49 content::WebContents* web_contents) const override; | 51 content::WebContents* web_contents) const override; |
| 50 std::unique_ptr<VirtualKeyboardDelegate> CreateVirtualKeyboardDelegate() | 52 std::unique_ptr<VirtualKeyboardDelegate> CreateVirtualKeyboardDelegate() |
| 51 const override; | 53 const override; |
| 52 ManagementAPIDelegate* CreateManagementAPIDelegate() const override; | 54 ManagementAPIDelegate* CreateManagementAPIDelegate() const override; |
| 55 MetricsPrivateDelegate* GetMetricsPrivateDelegate() override; |
| 53 | 56 |
| 54 private: | 57 private: |
| 58 std::unique_ptr<ChromeMetricsPrivateDelegate> metrics_private_delegate_; |
| 59 |
| 55 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient); | 60 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionsAPIClient); |
| 56 }; | 61 }; |
| 57 | 62 |
| 58 } // namespace extensions | 63 } // namespace extensions |
| 59 | 64 |
| 60 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ | 65 #endif // CHROME_BROWSER_EXTENSIONS_API_CHROME_EXTENSIONS_API_CLIENT_H_ |
| OLD | NEW |