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 EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_API_CLIENT_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_API_CLIENT_H_ |
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_API_CLIENT_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_API_CLIENT_H_ |
7 | 7 |
| 8 #include <memory> |
| 9 |
8 #include "extensions/browser/api/extensions_api_client.h" | 10 #include "extensions/browser/api/extensions_api_client.h" |
9 | 11 |
10 namespace extensions { | 12 namespace extensions { |
11 | 13 |
| 14 class ShellMetricsPrivateDelegate; |
| 15 |
12 class ShellExtensionsAPIClient : public ExtensionsAPIClient { | 16 class ShellExtensionsAPIClient : public ExtensionsAPIClient { |
13 public: | 17 public: |
14 ShellExtensionsAPIClient(); | 18 ShellExtensionsAPIClient(); |
| 19 ~ShellExtensionsAPIClient() override; |
15 | 20 |
16 // ExtensionsAPIClient implementation. | 21 // ExtensionsAPIClient implementation. |
17 void AttachWebContentsHelpers(content::WebContents* web_contents) const | 22 void AttachWebContentsHelpers(content::WebContents* web_contents) const |
18 override; | 23 override; |
19 AppViewGuestDelegate* CreateAppViewGuestDelegate() const override; | 24 AppViewGuestDelegate* CreateAppViewGuestDelegate() const override; |
| 25 MetricsPrivateDelegate* GetMetricsPrivateDelegate() override; |
| 26 |
| 27 private: |
| 28 std::unique_ptr<ShellMetricsPrivateDelegate> metrics_private_delegate_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(ShellExtensionsAPIClient); |
20 }; | 31 }; |
21 | 32 |
22 } // namespace extensions | 33 } // namespace extensions |
23 | 34 |
24 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_API_CLIENT_H_ | 35 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_API_CLIENT_H_ |
OLD | NEW |