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

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

Issue 6591034: Move core pieces of geolocation from chrome to content.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix Linux build Created 9 years, 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 5 #ifndef CONTENT_BROWSER_GEOLOCATION_WIN7_LOCATION_PROVIDER_WIN_H_
6 #ifndef CHROME_BROWSER_GEOLOCATION_WIN7_LOCATION_PROVIDER_WIN_H_ 6 #define CONTENT_BROWSER_GEOLOCATION_WIN7_LOCATION_PROVIDER_WIN_H_
7 #define CHROME_BROWSER_GEOLOCATION_WIN7_LOCATION_PROVIDER_WIN_H_
8 7
9 #include "base/scoped_ptr.h" 8 #include "base/scoped_ptr.h"
10 #include "base/task.h" 9 #include "base/task.h"
11 #include "chrome/browser/geolocation/location_provider.h" 10 #include "content/browser/geolocation/location_provider.h"
12 #include "chrome/browser/geolocation/win7_location_api_win.h" 11 #include "content/browser/geolocation/win7_location_api_win.h"
13 #include "chrome/common/geoposition.h" 12 #include "chrome/common/geoposition.h"
14 13
15 // Location provider for Windows 7 that uses the Location and Sensors platform 14 // Location provider for Windows 7 that uses the Location and Sensors platform
16 // to obtain position fixes. 15 // to obtain position fixes.
17 // TODO(allanwoj): Remove polling and let the api signal when a new location. 16 // TODO(allanwoj): Remove polling and let the api signal when a new location.
18 // TODO(allanwoj): Possibly derive this class and the linux gps provider class 17 // TODO(allanwoj): Possibly derive this class and the linux gps provider class
19 // from a single SystemLocationProvider class as their implementation is very 18 // from a single SystemLocationProvider class as their implementation is very
20 // similar. 19 // similar.
21 class Win7LocationProvider : public LocationProviderBase { 20 class Win7LocationProvider : public LocationProviderBase {
22 public: 21 public:
(...skipping 12 matching lines...) Expand all
35 void DoPollTask(); 34 void DoPollTask();
36 // Will schedule a poll; i.e. enqueue DoPollTask deferred task. 35 // Will schedule a poll; i.e. enqueue DoPollTask deferred task.
37 void ScheduleNextPoll(int interval); 36 void ScheduleNextPoll(int interval);
38 37
39 scoped_ptr<Win7LocationApi> api_; 38 scoped_ptr<Win7LocationApi> api_;
40 Geoposition position_; 39 Geoposition position_;
41 // Holder for the tasks which run on the thread; takes care of cleanup. 40 // Holder for the tasks which run on the thread; takes care of cleanup.
42 ScopedRunnableMethodFactory<Win7LocationProvider> task_factory_; 41 ScopedRunnableMethodFactory<Win7LocationProvider> task_factory_;
43 }; 42 };
44 43
45 44 #endif // CONTENT_BROWSER_GEOLOCATION_WIN7_LOCATION_PROVIDER_WIN_H_
46 #endif // CHROME_BROWSER_GEOLOCATION_WIN7_LOCATION_PROVIDER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698