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

Unified Diff: device/core/device_client.h

Issue 1155163008: Build a basic Mojo service framework for device/usb (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DISALLOW Created 5 years, 7 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
« no previous file with comments | « device/core/core.gyp ('k') | device/core/device_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/core/device_client.h
diff --git a/device/core/device_client.h b/device/core/device_client.h
index b4a9934e55b12774b8cb1c7dc5ef0016a2ef7582..00fa17902ab70f58e4ea26467a45085fc227f2f1 100644
--- a/device/core/device_client.h
+++ b/device/core/device_client.h
@@ -6,12 +6,17 @@
#define DEVICE_CORE_DEVICE_CLIENT_H_
#include "base/macros.h"
+#include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
namespace device {
class HidService;
class UsbService;
+namespace usb {
+class DeviceManager;
+}
+
// Interface used by consumers of //device APIs to get pointers to the service
// singletons appropriate for a given embedding application. For an example see
// //chrome/browser/chrome_device_client.h.
@@ -21,7 +26,7 @@ class DeviceClient {
DeviceClient();
// Destruction clears the single instance.
- ~DeviceClient();
+ virtual ~DeviceClient();
// Returns the single instance of |this|.
static DeviceClient* Get();
@@ -29,6 +34,11 @@ class DeviceClient {
// Returns the UsbService instance for this embedder.
virtual UsbService* GetUsbService();
+ // Connects a USB DeviceManager client to a concrete implementation. If
+ // no such implementation is available the request is dropped.
+ virtual void ConnectToUSBDeviceManager(
+ mojo::InterfaceRequest<usb::DeviceManager> request);
+
// Returns the HidService instance for this embedder.
virtual HidService* GetHidService();
« no previous file with comments | « device/core/core.gyp ('k') | device/core/device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698