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

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

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 15 matching lines...) Expand all
26 #include <algorithm> 26 #include <algorithm>
27 #include <set> 27 #include <set>
28 #include <vector> 28 #include <vector>
29 29
30 #include "base/basictypes.h" 30 #include "base/basictypes.h"
31 #include "base/bind.h" 31 #include "base/bind.h"
32 #include "base/memory/ref_counted.h" 32 #include "base/memory/ref_counted.h"
33 #include "base/message_loop.h" 33 #include "base/message_loop.h"
34 #include "base/string16.h" 34 #include "base/string16.h"
35 #include "base/string_util.h" 35 #include "base/string_util.h"
36 #include "base/task.h"
37 #include "base/threading/non_thread_safe.h" 36 #include "base/threading/non_thread_safe.h"
38 #include "content/common/content_export.h" 37 #include "content/common/content_export.h"
39 38
40 // The following data structures are used to store cell radio data and wifi 39 // The following data structures are used to store cell radio data and wifi
41 // data. See the Geolocation API design document at 40 // data. See the Geolocation API design document at
42 // http://code.google.com/p/google-gears/wiki/LocationAPI for a more complete 41 // http://code.google.com/p/google-gears/wiki/LocationAPI for a more complete
43 // description. 42 // description.
44 // 43 //
45 // For all integer fields, we use kint32min to represent unknown values. 44 // For all integer fields, we use kint32min to represent unknown values.
46 45
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 // The internal implementation. 360 // The internal implementation.
362 scoped_refptr<DeviceDataProviderImplBase<DataType> > impl_; 361 scoped_refptr<DeviceDataProviderImplBase<DataType> > impl_;
363 362
364 DISALLOW_COPY_AND_ASSIGN(DeviceDataProvider); 363 DISALLOW_COPY_AND_ASSIGN(DeviceDataProvider);
365 }; 364 };
366 365
367 typedef DeviceDataProvider<RadioData> RadioDataProvider; 366 typedef DeviceDataProvider<RadioData> RadioDataProvider;
368 typedef DeviceDataProvider<WifiData> WifiDataProvider; 367 typedef DeviceDataProvider<WifiData> WifiDataProvider;
369 368
370 #endif // CONTENT_BROWSER_GEOLOCATION_DEVICE_DATA_PROVIDER_H_ 369 #endif // CONTENT_BROWSER_GEOLOCATION_DEVICE_DATA_PROVIDER_H_
OLDNEW
« no previous file with comments | « content/browser/gamepad/gamepad_provider.cc ('k') | content/browser/geolocation/gps_location_provider_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698