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

Unified Diff: device/common/device_client.h

Issue 507503002: Remove BrowserThread dependency from usb_service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do the same to chrome/browser/BUILD.gn. Created 6 years, 4 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: device/common/device_client.h
diff --git a/device/common/device_client.h b/device/common/device_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..c1c16bfc2c1a611ca5617b80edd03c262d9abf2e
--- /dev/null
+++ b/device/common/device_client.h
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef DEVICE_COMMON_DEVICE_CLIENT_H_
+#define DEVICE_COMMON_DEVICE_CLIENT_H_
+
+namespace usb_service {
+class UsbService;
+}
+
+namespace device {
+
+// 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.
+class DeviceClient {
+ public:
+ // Construction sets the single instance.
+ DeviceClient();
+
+ // Destruction clears the single instance.
+ ~DeviceClient();
+
+ // Returns the single instance of |this|.
+ static DeviceClient* Get();
+
+ // Returns the UsbService instance for this embedder.
+ virtual usb_service::UsbService* GetUsbService();
+};
Ken Rockot(use gerrit already) 2014/08/28 21:47:03 Please add the standard private DISALLOW_COPY_AND_
Reilly Grant (use Gerrit) 2014/08/28 22:16:13 Done.
+
+} // namespace device
+
+#endif // DEVICE_COMMON_DEVICE_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698