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 // A wifi data provider provides wifi data from the device that is used by a | 5 // A wifi data provider provides wifi data from the device that is used by a |
6 // NetworkLocationProvider to obtain a position fix. We use a singleton | 6 // NetworkLocationProvider to obtain a position fix. We use a singleton |
7 // instance of the wifi data provider manager, which is used by multiple | 7 // instance of the wifi data provider manager, which is used by multiple |
8 // NetworkLocationProvider objects. | 8 // NetworkLocationProvider objects. |
9 // | 9 // |
10 // This file provides WifiDataProviderManager, which provides static methods to | 10 // This file provides WifiDataProviderManager, which provides static methods to |
11 // access the singleton instance. The singleton instance uses a private | 11 // access the singleton instance. The singleton instance uses a private |
12 // implementation of WifiDataProvider to abstract across platforms and also to | 12 // implementation of WifiDataProvider to abstract across platforms and also to |
13 // allow mock providers to be used for testing. | 13 // allow mock providers to be used for testing. |
14 | 14 |
15 #ifndef CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MANAGER_H_ | 15 #ifndef CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MANAGER_H_ |
16 #define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MANAGER_H_ | 16 #define CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MANAGER_H_ |
17 | 17 |
18 #include <set> | 18 #include <set> |
19 | 19 |
20 #include "base/basictypes.h" | |
21 #include "base/bind.h" | 20 #include "base/bind.h" |
22 #include "base/callback.h" | 21 #include "base/callback.h" |
| 22 #include "base/macros.h" |
23 #include "base/memory/ref_counted.h" | 23 #include "base/memory/ref_counted.h" |
24 #include "base/message_loop/message_loop.h" | 24 #include "base/message_loop/message_loop.h" |
25 #include "base/strings/string16.h" | 25 #include "base/strings/string16.h" |
26 #include "base/strings/string_util.h" | 26 #include "base/strings/string_util.h" |
27 #include "content/browser/geolocation/wifi_data.h" | 27 #include "content/browser/geolocation/wifi_data.h" |
28 #include "content/common/content_export.h" | 28 #include "content/common/content_export.h" |
29 | 29 |
30 namespace content { | 30 namespace content { |
31 | 31 |
32 class WifiDataProvider; | 32 class WifiDataProvider; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 // The internal implementation. | 90 // The internal implementation. |
91 scoped_refptr<WifiDataProvider> impl_; | 91 scoped_refptr<WifiDataProvider> impl_; |
92 | 92 |
93 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderManager); | 93 DISALLOW_COPY_AND_ASSIGN(WifiDataProviderManager); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace content | 96 } // namespace content |
97 | 97 |
98 #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MANAGER_H_ | 98 #endif // CONTENT_BROWSER_GEOLOCATION_WIFI_DATA_PROVIDER_MANAGER_H_ |
OLD | NEW |