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

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

Issue 419713002: Support permission_broker for chrome.hid devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix hid in app_shell after its move to //extensions Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « device/hid/hid_service_unittest.cc ('k') | extensions/browser/api/extensions_api_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 #include "extensions/browser/api/storage/settings_namespace.h" 11 #include "extensions/browser/api/storage/settings_namespace.h"
12 12
13 class GURL; 13 class GURL;
14 14
15 template <class T> 15 template <class T>
16 class ObserverListThreadSafe; 16 class ObserverListThreadSafe;
17 17
18 namespace content { 18 namespace content {
19 class BrowserContext; 19 class BrowserContext;
20 } 20 }
21 21
22 namespace device {
23 class HidService;
24 }
25
22 namespace extensions { 26 namespace extensions {
23 27
24 class SettingsObserver; 28 class SettingsObserver;
25 class SettingsStorageFactory; 29 class SettingsStorageFactory;
26 class ValueStoreCache; 30 class ValueStoreCache;
27 31
28 // Allows the embedder of the extensions module to customize its support for 32 // Allows the embedder of the extensions module to customize its support for
29 // API features. The embedder must create a single instance in the browser 33 // API features. The embedder must create a single instance in the browser
30 // process. Provides a default implementation that does nothing. 34 // process. Provides a default implementation that does nothing.
31 class ExtensionsAPIClient { 35 class ExtensionsAPIClient {
(...skipping 25 matching lines...) Expand all
57 int guest_instance_id, 61 int guest_instance_id,
58 const std::string& guest_extension_id); 62 const std::string& guest_extension_id);
59 63
60 // Denies the embedding requested by the <appview> specified by 64 // Denies the embedding requested by the <appview> specified by
61 // |guest_instance_id|. Returns true if the operation completes successfully. 65 // |guest_instance_id|. Returns true if the operation completes successfully.
62 virtual bool AppViewInternalDenyRequest( 66 virtual bool AppViewInternalDenyRequest(
63 content::BrowserContext* browser_context, 67 content::BrowserContext* browser_context,
64 int guest_instance_id, 68 int guest_instance_id,
65 const std::string& guest_extension_id); 69 const std::string& guest_extension_id);
66 70
71 // Returns the HidService instance for this embedder.
72 virtual device::HidService* GetHidService();
73
67 // NOTE: If this interface gains too many methods (perhaps more than 20) it 74 // NOTE: If this interface gains too many methods (perhaps more than 20) it
68 // should be split into one interface per API. 75 // should be split into one interface per API.
69 }; 76 };
70 77
71 } // namespace extensions 78 } // namespace extensions
72 79
73 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_ 80 #endif // EXTENSIONS_BROWSER_API_EXTENSIONS_API_CLIENT_H_
OLDNEW
« no previous file with comments | « device/hid/hid_service_unittest.cc ('k') | extensions/browser/api/extensions_api_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698