| 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 |
| 12 class ShellExtensionsAPIClient : public ExtensionsAPIClient { | 14 class ShellExtensionsAPIClient : public ExtensionsAPIClient { |
| 13 public: | 15 public: |
| 14 ShellExtensionsAPIClient(); | 16 ShellExtensionsAPIClient(); |
| 15 | 17 |
| 16 // ExtensionsAPIClient implementation. | 18 // ExtensionsAPIClient implementation. |
| 17 void AttachWebContentsHelpers(content::WebContents* web_contents) const | 19 void AttachWebContentsHelpers(content::WebContents* web_contents) const |
| 18 override; | 20 override; |
| 19 AppViewGuestDelegate* CreateAppViewGuestDelegate() const override; | 21 AppViewGuestDelegate* CreateAppViewGuestDelegate() const override; |
| 22 std::unique_ptr<MetricsPrivateDelegate> CreateMetricsPrivateDelegate() |
| 23 const override; |
| 20 }; | 24 }; |
| 21 | 25 |
| 22 } // namespace extensions | 26 } // namespace extensions |
| 23 | 27 |
| 24 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_API_CLIENT_H_ | 28 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_EXTENSIONS_API_CLIENT_H_ |
| OLD | NEW |