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

Side by Side Diff: content/browser/geolocation/gps_location_provider_linux.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 // This file declares GPS providers that run on linux. Currently, just uses 5 // This file declares GPS providers that run on linux. Currently, just uses
6 // the libgps (gpsd) API. Public for testing only - for normal usage this 6 // the libgps (gpsd) API. Public for testing only - for normal usage this
7 // header should not be required, as location_provider.h declares the needed 7 // header should not be required, as location_provider.h declares the needed
8 // factory function. 8 // factory function.
9 9
10 #ifndef CONTENT_BROWSER_GEOLOCATION_GPS_LOCATION_PROVIDER_LINUX_H_ 10 #ifndef CONTENT_BROWSER_GEOLOCATION_GPS_LOCATION_PROVIDER_LINUX_H_
11 #define CONTENT_BROWSER_GEOLOCATION_GPS_LOCATION_PROVIDER_LINUX_H_ 11 #define CONTENT_BROWSER_GEOLOCATION_GPS_LOCATION_PROVIDER_LINUX_H_
12 #pragma once 12 #pragma once
13 13
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/task.h"
18 #include "content/browser/geolocation/location_provider.h" 17 #include "content/browser/geolocation/location_provider.h"
19 #include "content/common/content_export.h" 18 #include "content/common/content_export.h"
20 #include "content/common/geoposition.h" 19 #include "content/common/geoposition.h"
21 20
22 class LibGps; 21 class LibGps;
23 22
24 // Location provider for Linux, that uses libgps/gpsd to obtain position fixes. 23 // Location provider for Linux, that uses libgps/gpsd to obtain position fixes.
25 // TODO(joth): Currently this runs entirely in the client thread (i.e. Chrome's 24 // TODO(joth): Currently this runs entirely in the client thread (i.e. Chrome's
26 // IO thread). As the older libgps API is not designed to support polling, 25 // IO thread). As the older libgps API is not designed to support polling,
27 // there's a chance it could block, so better move this into its own worker 26 // there's a chance it could block, so better move this into its own worker
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 63
65 const LibGpsFactory libgps_factory_; 64 const LibGpsFactory libgps_factory_;
66 scoped_ptr<LibGps> gps_; 65 scoped_ptr<LibGps> gps_;
67 Geoposition position_; 66 Geoposition position_;
68 67
69 // Holder for the tasks which run on the thread; takes care of cleanup. 68 // Holder for the tasks which run on the thread; takes care of cleanup.
70 base::WeakPtrFactory<GpsLocationProviderLinux> weak_factory_; 69 base::WeakPtrFactory<GpsLocationProviderLinux> weak_factory_;
71 }; 70 };
72 71
73 #endif // CONTENT_BROWSER_GEOLOCATION_GPS_LOCATION_PROVIDER_LINUX_H_ 72 #endif // CONTENT_BROWSER_GEOLOCATION_GPS_LOCATION_PROVIDER_LINUX_H_
OLDNEW
« no previous file with comments | « content/browser/geolocation/device_data_provider.h ('k') | content/browser/geolocation/mock_location_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698