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

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: Acquire the UsbService instance through a DeviceClient implementation. 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
« no previous file with comments | « device/common/common.gyp ('k') | device/common/device_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2df34a8912d632094b2d66f346c2e6d23a551637
--- /dev/null
+++ b/device/common/device_client.h
@@ -0,0 +1,31 @@
+// 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 {
+
+class DeviceClient {
scheib 2014/08/28 18:18:14 Every class definition should have an accompanying
+ public:
+ // Construction sets the singlse 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();
+};
+
+} // namespace device
+
+#endif // DEVICE_COMMON_DEVICE_CLIENT_H_
« no previous file with comments | « device/common/common.gyp ('k') | device/common/device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698