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 #include "extensions/shell/browser/shell_extensions_api_client.h" | 5 #include "extensions/shell/browser/shell_extensions_api_client.h" |
6 | 6 |
| 7 #include "base/memory/ptr_util.h" |
| 8 #include "extensions/shell/browser/api/metrics_private/shell_metrics_private_del
egate.h" |
7 #include "extensions/shell/browser/shell_app_view_guest_delegate.h" | 9 #include "extensions/shell/browser/shell_app_view_guest_delegate.h" |
8 #include "extensions/shell/browser/shell_extension_web_contents_observer.h" | 10 #include "extensions/shell/browser/shell_extension_web_contents_observer.h" |
9 | 11 |
10 namespace extensions { | 12 namespace extensions { |
11 | 13 |
12 ShellExtensionsAPIClient::ShellExtensionsAPIClient() { | 14 ShellExtensionsAPIClient::ShellExtensionsAPIClient() { |
13 } | 15 } |
14 | 16 |
15 void ShellExtensionsAPIClient::AttachWebContentsHelpers( | 17 void ShellExtensionsAPIClient::AttachWebContentsHelpers( |
16 content::WebContents* web_contents) const { | 18 content::WebContents* web_contents) const { |
17 ShellExtensionWebContentsObserver::CreateForWebContents(web_contents); | 19 ShellExtensionWebContentsObserver::CreateForWebContents(web_contents); |
18 } | 20 } |
19 | 21 |
20 AppViewGuestDelegate* ShellExtensionsAPIClient::CreateAppViewGuestDelegate() | 22 AppViewGuestDelegate* ShellExtensionsAPIClient::CreateAppViewGuestDelegate() |
21 const { | 23 const { |
22 return new ShellAppViewGuestDelegate(); | 24 return new ShellAppViewGuestDelegate(); |
23 } | 25 } |
24 | 26 |
| 27 std::unique_ptr<MetricsPrivateDelegate> |
| 28 ShellExtensionsAPIClient::CreateMetricsPrivateDelegate() const { |
| 29 return base::MakeUnique<ShellMetricsPrivateDelegate>(); |
| 30 } |
| 31 |
25 } // namespace extensions | 32 } // namespace extensions |
OLD | NEW |