OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 device data provider provides data from the device that is used by a | 5 // A device data provider provides data from the device that is used by a |
6 // NetworkLocationProvider to obtain a position fix. This data may be either | 6 // NetworkLocationProvider to obtain a position fix. This data may be either |
7 // cell radio data or wifi data. For a given type of data, we use a singleton | 7 // cell radio data or wifi data. For a given type of data, we use a singleton |
8 // instance of the device data provider, which is used by multiple | 8 // instance of the device data provider, which is used by multiple |
9 // NetworkLocationProvider objects. | 9 // NetworkLocationProvider objects. |
10 // | 10 // |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 #ifndef CONTENT_BROWSER_GEOLOCATION_DEVICE_DATA_PROVIDER_H_ | 22 #ifndef CONTENT_BROWSER_GEOLOCATION_DEVICE_DATA_PROVIDER_H_ |
23 #define CONTENT_BROWSER_GEOLOCATION_DEVICE_DATA_PROVIDER_H_ | 23 #define CONTENT_BROWSER_GEOLOCATION_DEVICE_DATA_PROVIDER_H_ |
24 | 24 |
25 #include <set> | 25 #include <set> |
26 | 26 |
27 #include "base/basictypes.h" | 27 #include "base/basictypes.h" |
28 #include "base/bind.h" | 28 #include "base/bind.h" |
29 #include "base/memory/ref_counted.h" | 29 #include "base/memory/ref_counted.h" |
30 #include "base/message_loop.h" | 30 #include "base/message_loop.h" |
31 #include "base/string16.h" | 31 #include "base/strings/string16.h" |
32 #include "base/string_util.h" | 32 #include "base/strings/string_util.h" |
33 #include "base/threading/non_thread_safe.h" | 33 #include "base/threading/non_thread_safe.h" |
34 #include "content/common/content_export.h" | 34 #include "content/common/content_export.h" |
35 | 35 |
36 namespace content { | 36 namespace content { |
37 | 37 |
38 // Wifi data relating to a single access point. | 38 // Wifi data relating to a single access point. |
39 struct CONTENT_EXPORT AccessPointData { | 39 struct CONTENT_EXPORT AccessPointData { |
40 AccessPointData(); | 40 AccessPointData(); |
41 ~AccessPointData(); | 41 ~AccessPointData(); |
42 | 42 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 scoped_refptr<DeviceDataProviderImplBase<DataType> > impl_; | 296 scoped_refptr<DeviceDataProviderImplBase<DataType> > impl_; |
297 | 297 |
298 DISALLOW_COPY_AND_ASSIGN(DeviceDataProvider); | 298 DISALLOW_COPY_AND_ASSIGN(DeviceDataProvider); |
299 }; | 299 }; |
300 | 300 |
301 typedef DeviceDataProvider<WifiData> WifiDataProvider; | 301 typedef DeviceDataProvider<WifiData> WifiDataProvider; |
302 | 302 |
303 } // namespace content | 303 } // namespace content |
304 | 304 |
305 #endif // CONTENT_BROWSER_GEOLOCATION_DEVICE_DATA_PROVIDER_H_ | 305 #endif // CONTENT_BROWSER_GEOLOCATION_DEVICE_DATA_PROVIDER_H_ |
OLD | NEW |