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

Side by Side Diff: device/core/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, 3 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 unified diff | Download patch
« no previous file with comments | « device/core/core.gyp ('k') | device/core/device_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef DEVICE_CORE_DEVICE_CLIENT_H_
6 #define DEVICE_CORE_DEVICE_CLIENT_H_
7
8 #include "base/macros.h"
9
10 namespace usb_service {
11 class UsbService;
12 }
13
14 namespace device {
15
16 // Interface used by consumers of //device APIs to get pointers to the service
17 // singletons appropriate for a given embedding application. For an example see
18 // //chrome/browser/chrome_device_client.h.
19 class DeviceClient {
20 public:
21 // Construction sets the single instance.
22 DeviceClient();
23
24 // Destruction clears the single instance.
25 ~DeviceClient();
26
27 // Returns the single instance of |this|.
28 static DeviceClient* Get();
29
30 // Returns the UsbService instance for this embedder.
31 virtual usb_service::UsbService* GetUsbService();
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(DeviceClient);
35 };
36
37 } // namespace device
38
39 #endif // DEVICE_CORE_DEVICE_CLIENT_H_
OLDNEW
« 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