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

Side by Side Diff: chrome/browser/usb/usb_chooser_controller.h

Issue 2127883003: Move chooser_controller directory from //components to //chrome/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 5 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 CHROME_BROWSER_USB_USB_CHOOSER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_USB_USB_CHOOSER_CONTROLLER_H_
6 #define CHROME_BROWSER_USB_USB_CHOOSER_CONTROLLER_H_ 6 #define CHROME_BROWSER_USB_USB_CHOOSER_CONTROLLER_H_
7 7
8 #include <unordered_map> 8 #include <unordered_map>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/scoped_observer.h" 15 #include "base/scoped_observer.h"
16 #include "components/chooser_controller/chooser_controller.h" 16 #include "chrome/browser/chooser_controller/chooser_controller.h"
17 #include "device/usb/public/interfaces/chooser_service.mojom.h" 17 #include "device/usb/public/interfaces/chooser_service.mojom.h"
18 #include "device/usb/usb_service.h" 18 #include "device/usb/usb_service.h"
19 #include "mojo/public/cpp/bindings/array.h" 19 #include "mojo/public/cpp/bindings/array.h"
20 20
21 namespace content { 21 namespace content {
22 class RenderFrameHost; 22 class RenderFrameHost;
23 } 23 }
24 24
25 namespace device { 25 namespace device {
26 class UsbDevice; 26 class UsbDevice;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 std::vector<std::pair<scoped_refptr<device::UsbDevice>, base::string16>> 65 std::vector<std::pair<scoped_refptr<device::UsbDevice>, base::string16>>
66 devices_; 66 devices_;
67 // Maps from device name to number of devices. 67 // Maps from device name to number of devices.
68 std::unordered_map<base::string16, int> device_name_map_; 68 std::unordered_map<base::string16, int> device_name_map_;
69 base::WeakPtrFactory<UsbChooserController> weak_factory_; 69 base::WeakPtrFactory<UsbChooserController> weak_factory_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(UsbChooserController); 71 DISALLOW_COPY_AND_ASSIGN(UsbChooserController);
72 }; 72 };
73 73
74 #endif // CHROME_BROWSER_USB_USB_CHOOSER_CONTROLLER_H_ 74 #endif // CHROME_BROWSER_USB_USB_CHOOSER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/website_settings/chooser_bubble_delegate.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698