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

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

Issue 599303004: Add getUserSelectedDevices to the USB extensions API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add device_permissions_prompt.* to BUILD.gn. Created 6 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 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 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Creates a delegate for WebRequestEventRouter. 91 // Creates a delegate for WebRequestEventRouter.
92 virtual WebRequestEventRouterDelegate* CreateWebRequestEventRouterDelegate() 92 virtual WebRequestEventRouterDelegate* CreateWebRequestEventRouterDelegate()
93 const; 93 const;
94 94
95 // TODO(wjmaclean): Remove this when (if) ContentRulesRegistry code moves 95 // TODO(wjmaclean): Remove this when (if) ContentRulesRegistry code moves
96 // to extensions/browser/api. 96 // to extensions/browser/api.
97 virtual scoped_refptr<ContentRulesRegistry> CreateContentRulesRegistry( 97 virtual scoped_refptr<ContentRulesRegistry> CreateContentRulesRegistry(
98 content::BrowserContext* browser_context, 98 content::BrowserContext* browser_context,
99 RulesCacheDelegate* cache_delegate) const; 99 RulesCacheDelegate* cache_delegate) const;
100 100
101 // Creates a DevicePermissionsPrompt appropriate for the embedder.
102 virtual scoped_ptr<DevicePermissionsPrompt> CreateDevicePermissionsPrompt(
103 content::WebContents* web_contents) const;
104
101 // NOTE: If this interface gains too many methods (perhaps more than 20) it 105 // NOTE: If this interface gains too many methods (perhaps more than 20) it
102 // should be split into one interface per API. 106 // should be split into one interface per API.
103 }; 107 };
104 108
105 } // namespace extensions 109 } // namespace extensions
106 110
107 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 111 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/browser/api/device_permissions_prompt.cc ('k') | extensions/browser/api/extensions_api_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698