OLD | NEW |
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 EXTENSIONS_BROWSER_DEVICE_PERMISSIONS_PROMPT_H_ | 5 #ifndef EXTENSIONS_BROWSER_DEVICE_PERMISSIONS_PROMPT_H_ |
6 #define EXTENSIONS_BROWSER_DEVICE_PERMISSIONS_PROMPT_H_ | 6 #define EXTENSIONS_BROWSER_DEVICE_PERMISSIONS_PROMPT_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
17 #include "base/strings/string16.h" | 17 #include "base/strings/string16.h" |
18 | 18 |
19 namespace content { | 19 namespace content { |
20 class BrowserContext; | 20 class BrowserContext; |
21 class WebContents; | 21 class WebContents; |
22 } | 22 } |
23 | 23 |
24 namespace device { | 24 namespace device { |
25 class HidDeviceFilter; | 25 class HidDeviceFilter; |
26 class HidDeviceInfo; | 26 class HidDeviceInfo; |
27 class UsbDevice; | 27 class UsbDevice; |
28 class UsbDeviceFilter; | 28 struct UsbDeviceFilter; |
29 } | 29 } |
30 | 30 |
31 namespace extensions { | 31 namespace extensions { |
32 | 32 |
33 class Extension; | 33 class Extension; |
34 | 34 |
35 // Platform-independent interface for displaing a UI for choosing devices | 35 // Platform-independent interface for displaing a UI for choosing devices |
36 // (similar to choosing files). | 36 // (similar to choosing files). |
37 class DevicePermissionsPrompt { | 37 class DevicePermissionsPrompt { |
38 public: | 38 public: |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 // Parameters available to the UI implementation. | 158 // Parameters available to the UI implementation. |
159 scoped_refptr<Prompt> prompt_; | 159 scoped_refptr<Prompt> prompt_; |
160 | 160 |
161 DISALLOW_COPY_AND_ASSIGN(DevicePermissionsPrompt); | 161 DISALLOW_COPY_AND_ASSIGN(DevicePermissionsPrompt); |
162 }; | 162 }; |
163 | 163 |
164 } // namespace extensions | 164 } // namespace extensions |
165 | 165 |
166 #endif // EXTENSIONS_BROWSER_API_DEVICE_PERMISSIONS_PROMPT_H_ | 166 #endif // EXTENSIONS_BROWSER_API_DEVICE_PERMISSIONS_PROMPT_H_ |
OLD | NEW |