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

Side by Side 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, 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
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_COMMON_DEVICE_CLIENT_H_
6 #define DEVICE_COMMON_DEVICE_CLIENT_H_
7
8 namespace usb_service {
9 class UsbService;
10 }
11
12 namespace device {
13
14 // Interface used by consumers of //device APIs to get pointers to the service
15 // singletons appropriate for a given embedding application. For an example see
16 // //chrome/browser/chrome_device_client.h.
17 class DeviceClient {
18 public:
19 // Construction sets the single instance.
20 DeviceClient();
21
22 // Destruction clears the single instance.
23 ~DeviceClient();
24
25 // Returns the single instance of |this|.
26 static DeviceClient* Get();
27
28 // Returns the UsbService instance for this embedder.
29 virtual usb_service::UsbService* GetUsbService();
30 };
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.
31
32 } // namespace device
33
34 #endif // DEVICE_COMMON_DEVICE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698