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

Unified Diff: extensions/shell/browser/shell_device_client.h

Issue 507503002: Remove BrowserThread dependency from usb_service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move device/common to device/core. 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: extensions/shell/browser/shell_device_client.h
diff --git a/extensions/shell/browser/shell_device_client.h b/extensions/shell/browser/shell_device_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..d34e3ca4cccc83de428057a5c0a12dc4323467a2
--- /dev/null
+++ b/extensions/shell/browser/shell_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 EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_
+#define EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_
+
+#include "device/core/device_client.h"
+
+#include "base/compiler_specific.h"
+#include "base/macros.h"
+
+namespace extensions {
+
+// Implementation of device::DeviceClient that returns //device API service
+// singletons appropriate for use within app shell.
+class ShellDeviceClient : device::DeviceClient {
+ public:
+ ShellDeviceClient();
+ virtual ~ShellDeviceClient();
+
+ // device::DeviceClient implementation
+ virtual usb_service::UsbService* GetUsbService() OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ShellDeviceClient);
+};
+
+}
+
+#endif // EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_
« no previous file with comments | « extensions/shell/browser/shell_browser_main_parts.cc ('k') | extensions/shell/browser/shell_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698