Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(346)

Side by Side Diff: chrome/browser/extensions/api/chrome_extensions_api_client.h

Issue 2331343012: Create MetricsPrivateDelegate for metricsPrivate behavior (Closed)
Patch Set: nit & rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/BUILD.gn ('k') | chrome/browser/extensions/api/chrome_extensions_api_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698