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

Unified Diff: chrome/browser/chrome_device_client.h

Issue 507503002: Remove BrowserThread dependency from usb_service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comments describing the new DeviceClient classes. 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: chrome/browser/chrome_device_client.h
diff --git a/chrome/browser/chrome_device_client.h b/chrome/browser/chrome_device_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..01f8ae6acbd4a0ccc435aafc1d88a6a838a6b931
--- /dev/null
+++ b/chrome/browser/chrome_device_client.h
@@ -0,0 +1,22 @@
+// 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 CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_
+#define CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_
+
+#include "device/common/device_client.h"
+
+#include "base/compiler_specific.h"
+
+// Implementation of device::DeviceClient that returns //device API service
+// singletons appropriate for use within the Chrome application.
+class ChromeDeviceClient : device::DeviceClient {
+ public:
+ ChromeDeviceClient();
+ virtual ~ChromeDeviceClient();
+
+ virtual usb_service::UsbService* GetUsbService() OVERRIDE;
Lei Zhang 2014/08/28 18:44:57 nit: Add a comment to say // device::DEviceClient
+};
Lei Zhang 2014/08/28 18:44:57 nit: DISALLOW_COPY_AND_ASSIGN
+
+#endif // CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698