OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_WIFI_WIFI_SERVICE_H_ | 5 #ifndef COMPONENTS_WIFI_WIFI_SERVICE_H_ |
6 #define COMPONENTS_WIFI_WIFI_SERVICE_H_ | 6 #define COMPONENTS_WIFI_WIFI_SERVICE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/callback.h" | 14 #include "base/callback.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/threading/sequenced_worker_pool.h" | 17 #include "base/sequenced_task_runner.h" |
| 18 #include "base/single_thread_task_runner.h" |
18 #include "base/values.h" | 19 #include "base/values.h" |
19 #include "components/wifi/wifi_export.h" | 20 #include "components/wifi/wifi_export.h" |
20 | 21 |
21 namespace wifi { | 22 namespace wifi { |
22 | 23 |
23 // WiFiService interface used by implementation of chrome.networkingPrivate | 24 // WiFiService interface used by implementation of chrome.networkingPrivate |
24 // JavaScript extension API. All methods should be called on worker thread. | 25 // JavaScript extension API. All methods should be called on worker thread. |
25 // It could be created on any (including UI) thread, so nothing expensive should | 26 // It could be created on any (including UI) thread, so nothing expensive should |
26 // be done in the constructor. See |NetworkingPrivateService| for wrapper | 27 // be done in the constructor. See |NetworkingPrivateService| for wrapper |
27 // accessible on UI thread. | 28 // accessible on UI thread. |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 static const char kErrorScanForNetworksWithName[]; | 137 static const char kErrorScanForNetworksWithName[]; |
137 static const char kErrorWiFiService[]; | 138 static const char kErrorWiFiService[]; |
138 | 139 |
139 private: | 140 private: |
140 DISALLOW_COPY_AND_ASSIGN(WiFiService); | 141 DISALLOW_COPY_AND_ASSIGN(WiFiService); |
141 }; | 142 }; |
142 | 143 |
143 } // namespace wifi | 144 } // namespace wifi |
144 | 145 |
145 #endif // COMPONENTS_WIFI_WIFI_SERVICE_H_ | 146 #endif // COMPONENTS_WIFI_WIFI_SERVICE_H_ |
OLD | NEW |