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

Unified 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: Add NOTIMPLEMENTED to default GetHidService implementation. 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 side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/extensions_api_client.h
diff --git a/extensions/browser/api/extensions_api_client.h b/extensions/browser/api/extensions_api_client.h
index b87e2d37742559892e2033cefad9240a2fd653b8..fa2a51844a1f605a61fce138e3ece022b5f750b2 100644
--- a/extensions/browser/api/extensions_api_client.h
+++ b/extensions/browser/api/extensions_api_client.h
@@ -8,6 +8,7 @@
#include <map>
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "extensions/browser/api/storage/settings_namespace.h"
class GURL;
@@ -19,6 +20,10 @@ namespace content {
class BrowserContext;
}
+namespace device {
+class HidService;
+}
+
namespace extensions {
class SettingsObserver;
@@ -64,6 +69,9 @@ class ExtensionsAPIClient {
int guest_instance_id,
const std::string& guest_extension_id);
+ // Returns the HidService instance for this embedder.
+ virtual device::HidService* GetHidService();
+
// NOTE: If this interface gains too many methods (perhaps more than 20) it
// should be split into one interface per API.
};

Powered by Google App Engine
This is Rietveld 408576698