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

Side by Side Diff: extensions/browser/api/extensions_api_client.h

Issue 2077723002: [Extensions] Short-circuit activity logging if not enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add Test Created 4 years, 6 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 EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 5 #ifndef EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
6 #define EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 6 #define EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 virtual WebViewGuestDelegate* CreateWebViewGuestDelegate( 100 virtual WebViewGuestDelegate* CreateWebViewGuestDelegate(
101 WebViewGuest* web_view_guest) const; 101 WebViewGuest* web_view_guest) const;
102 102
103 // Returns a delegate for some of WebViewPermissionHelper's behavior. The 103 // Returns a delegate for some of WebViewPermissionHelper's behavior. The
104 // caller owns the returned WebViewPermissionHelperDelegate. 104 // caller owns the returned WebViewPermissionHelperDelegate.
105 virtual WebViewPermissionHelperDelegate* 105 virtual WebViewPermissionHelperDelegate*
106 CreateWebViewPermissionHelperDelegate( 106 CreateWebViewPermissionHelperDelegate(
107 WebViewPermissionHelper* web_view_permission_helper) const; 107 WebViewPermissionHelper* web_view_permission_helper) const;
108 108
109 // Creates a delegate for WebRequestEventRouter. 109 // Creates a delegate for WebRequestEventRouter.
110 virtual WebRequestEventRouterDelegate* CreateWebRequestEventRouterDelegate() 110 virtual std::unique_ptr<WebRequestEventRouterDelegate>
111 const; 111 CreateWebRequestEventRouterDelegate() const;
112 112
113 // TODO(wjmaclean): Remove this when (if) ContentRulesRegistry code moves 113 // TODO(wjmaclean): Remove this when (if) ContentRulesRegistry code moves
114 // to extensions/browser/api. 114 // to extensions/browser/api.
115 virtual scoped_refptr<ContentRulesRegistry> CreateContentRulesRegistry( 115 virtual scoped_refptr<ContentRulesRegistry> CreateContentRulesRegistry(
116 content::BrowserContext* browser_context, 116 content::BrowserContext* browser_context,
117 RulesCacheDelegate* cache_delegate) const; 117 RulesCacheDelegate* cache_delegate) const;
118 118
119 // Creates a DevicePermissionsPrompt appropriate for the embedder. 119 // Creates a DevicePermissionsPrompt appropriate for the embedder.
120 virtual std::unique_ptr<DevicePermissionsPrompt> 120 virtual std::unique_ptr<DevicePermissionsPrompt>
121 CreateDevicePermissionsPrompt(content::WebContents* web_contents) const; 121 CreateDevicePermissionsPrompt(content::WebContents* web_contents) const;
122 122
123 // Returns a delegate for some of VirtualKeyboardAPI's behavior. 123 // Returns a delegate for some of VirtualKeyboardAPI's behavior.
124 virtual std::unique_ptr<VirtualKeyboardDelegate> 124 virtual std::unique_ptr<VirtualKeyboardDelegate>
125 CreateVirtualKeyboardDelegate() const; 125 CreateVirtualKeyboardDelegate() const;
126 126
127 // Creates a delegate for handling the management extension api. 127 // Creates a delegate for handling the management extension api.
128 virtual ManagementAPIDelegate* CreateManagementAPIDelegate() const; 128 virtual ManagementAPIDelegate* CreateManagementAPIDelegate() const;
129 129
130 // NOTE: If this interface gains too many methods (perhaps more than 20) it 130 // NOTE: If this interface gains too many methods (perhaps more than 20) it
131 // should be split into one interface per API. 131 // should be split into one interface per API.
132 }; 132 };
133 133
134 } // namespace extensions 134 } // namespace extensions
135 135
136 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 136 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/chrome_extension_message_filter.cc ('k') | extensions/browser/api/extensions_api_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698