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

Unified Diff: content/browser/geolocation/gps_location_provider_linux.h

Issue 8463022: Make chrome communicate with gpsd through libgps/shared memory (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: putting libgps version string into anon namespace Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/geolocation/gps_location_provider_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/geolocation/gps_location_provider_linux.h
diff --git a/content/browser/geolocation/gps_location_provider_linux.h b/content/browser/geolocation/gps_location_provider_linux.h
index 0d199917b8e8d0868e10113c4da45c69abeaa69f..0c1cac31e0c2fbb3174c53377025ae9af88c4ecf 100644
--- a/content/browser/geolocation/gps_location_provider_linux.h
+++ b/content/browser/geolocation/gps_location_provider_linux.h
@@ -33,6 +33,16 @@ class CONTENT_EXPORT GpsLocationProviderLinux : public LocationProviderBase {
explicit GpsLocationProviderLinux(LibGpsFactory libgps_factory);
virtual ~GpsLocationProviderLinux();
+ void SetGpsdReconnectIntervalMillis(int value) {
+ gpsd_reconnect_interval_millis_ = value;
+ }
+ void SetPollPeriodMovingMillis(int value) {
+ poll_period_moving_millis_ = value;
+ }
+ void SetPollPeriodStationaryMillis(int value) {
+ poll_period_stationary_millis_ = value;
+ }
+
// LocationProvider
virtual bool StartProvider(bool high_accuracy);
virtual void StopProvider();
@@ -47,6 +57,10 @@ class CONTENT_EXPORT GpsLocationProviderLinux : public LocationProviderBase {
// Will schedule a poll; i.e. enqueue DoGpsPollTask deferred task.
void ScheduleNextGpsPoll(int interval);
+ int gpsd_reconnect_interval_millis_;
+ int poll_period_moving_millis_;
+ int poll_period_stationary_millis_;
+
const LibGpsFactory libgps_factory_;
scoped_ptr<LibGps> gps_;
Geoposition position_;
« no previous file with comments | « no previous file | content/browser/geolocation/gps_location_provider_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698