| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |