Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Side by Side Diff: content/browser/geolocation/device_data_provider.h

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 //
11 // This file providers DeviceDataProvider, which provides static methods to 11 // This file providers DeviceDataProvider, which provides static methods to
12 // access the singleton instance. The singleton instance uses a private 12 // access the singleton instance. The singleton instance uses a private
13 // implementation to abstract across platforms and also to allow mock providers 13 // implementation to abstract across platforms and also to allow mock providers
14 // to be used for testing. 14 // to be used for testing.
15 // 15 //
16 // This file also provides DeviceDataProviderImplBase, a base class which 16 // This file also provides DeviceDataProviderImplBase, a base class which
17 // provides commom functionality for the private implementations. 17 // provides commom functionality for the private implementations.
18 // 18 //
19 // This file also declares the data structures used to represent cell radio data 19 // This file also declares the data structures used to represent cell radio data
20 // and wifi data. 20 // and wifi data.
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 #pragma once
25 24
26 #include <set> 25 #include <set>
27 26
28 #include "base/basictypes.h" 27 #include "base/basictypes.h"
29 #include "base/bind.h" 28 #include "base/bind.h"
30 #include "base/memory/ref_counted.h" 29 #include "base/memory/ref_counted.h"
31 #include "base/message_loop.h" 30 #include "base/message_loop.h"
32 #include "base/string16.h" 31 #include "base/string16.h"
33 #include "base/string_util.h" 32 #include "base/string_util.h"
34 #include "base/threading/non_thread_safe.h" 33 #include "base/threading/non_thread_safe.h"
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 296
298 // The internal implementation. 297 // The internal implementation.
299 scoped_refptr<DeviceDataProviderImplBase<DataType> > impl_; 298 scoped_refptr<DeviceDataProviderImplBase<DataType> > impl_;
300 299
301 DISALLOW_COPY_AND_ASSIGN(DeviceDataProvider); 300 DISALLOW_COPY_AND_ASSIGN(DeviceDataProvider);
302 }; 301 };
303 302
304 typedef DeviceDataProvider<WifiData> WifiDataProvider; 303 typedef DeviceDataProvider<WifiData> WifiDataProvider;
305 304
306 #endif // CONTENT_BROWSER_GEOLOCATION_DEVICE_DATA_PROVIDER_H_ 305 #endif // CONTENT_BROWSER_GEOLOCATION_DEVICE_DATA_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/browser/geolocation/core_location_provider_mac.h ('k') | content/browser/geolocation/empty_device_data_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698