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

Side by Side Diff: device/core/device_client.h

Issue 1183443002: Reland: Introduce the devices Mojo app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn check... Created 5 years, 6 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/BUILD.gn ('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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DEVICE_CORE_DEVICE_CLIENT_H_ 5 #ifndef DEVICE_CORE_DEVICE_CLIENT_H_
6 #define DEVICE_CORE_DEVICE_CLIENT_H_ 6 #define DEVICE_CORE_DEVICE_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" 9 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 // Destruction clears the single instance. 28 // Destruction clears the single instance.
29 virtual ~DeviceClient(); 29 virtual ~DeviceClient();
30 30
31 // Returns the single instance of |this|. 31 // Returns the single instance of |this|.
32 static DeviceClient* Get(); 32 static DeviceClient* Get();
33 33
34 // Returns the UsbService instance for this embedder. 34 // Returns the UsbService instance for this embedder.
35 virtual UsbService* GetUsbService(); 35 virtual UsbService* GetUsbService();
36 36
37 // Connects a USB DeviceManager client to a concrete implementation. If
38 // no such implementation is available the request is dropped.
39 virtual void ConnectToUSBDeviceManager(
40 mojo::InterfaceRequest<usb::DeviceManager> request);
41
42 // Returns the HidService instance for this embedder. 37 // Returns the HidService instance for this embedder.
43 virtual HidService* GetHidService(); 38 virtual HidService* GetHidService();
44 39
45 private: 40 private:
46 DISALLOW_COPY_AND_ASSIGN(DeviceClient); 41 DISALLOW_COPY_AND_ASSIGN(DeviceClient);
47 }; 42 };
48 43
49 } // namespace device 44 } // namespace device
50 45
51 #endif // DEVICE_CORE_DEVICE_CLIENT_H_ 46 #endif // DEVICE_CORE_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « device/BUILD.gn ('k') | device/core/device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698