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

Side by Side Diff: device/usb/public/cpp/device_manager_factory.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/usb/public/cpp/device_manager_delegate.h ('k') | device/usb/public/interfaces/BUILD.gn » ('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 2015 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_USB_PUBLIC_CPP_DEVICE_MANAGER_FACTORY_H_
6 #define DEVICE_USB_PUBLIC_CPP_DEVICE_MANAGER_FACTORY_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "device/usb/public/interfaces/device_manager.mojom.h"
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
12
13 namespace device {
14 namespace usb {
15
16 class DeviceManagerDelegate;
17
18 // Public interface to construct an implementation of the DeviceManager service.
19 class DeviceManagerFactory {
20 public:
21 // Builds a new DeviceManager instance to fulfill a request. The service is
22 // bound to the lifetime of |request|'s MessagePipe, and it takes ownership of
23 // |delegate|.
24 static void Build(mojo::InterfaceRequest<DeviceManager> request,
25 scoped_ptr<DeviceManagerDelegate> delegate);
26
27 private:
28 DISALLOW_COPY_AND_ASSIGN(DeviceManagerFactory);
29 };
30
31 } // namespace usb
32 } // namespace device
33
34 #endif // DEVICE_USB_PUBLIC_CPP_DEVICE_MANAGER_FACTORY_H_
OLDNEW
« no previous file with comments | « device/usb/public/cpp/device_manager_delegate.h ('k') | device/usb/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698