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

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

Issue 10316007: Make the Geoposition helper class public (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix forward-declaration of struct as class. Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/geolocation/location_arbitrator.h
diff --git a/content/browser/geolocation/location_arbitrator.h b/content/browser/geolocation/location_arbitrator.h
index cbecf6411d3d3a4e08e02c0aee9d39975b73c557..51040230402eb49c6e929cf51e0b4bc2f19e2eba 100644
--- a/content/browser/geolocation/location_arbitrator.h
+++ b/content/browser/geolocation/location_arbitrator.h
@@ -12,8 +12,8 @@
#include "content/browser/geolocation/location_provider.h"
#include "content/browser/geolocation/geolocation_observer.h"
#include "content/common/content_export.h"
-#include "content/common/geoposition.h"
#include "content/public/browser/access_token_store.h"
+#include "content/public/common/geoposition.h"
#include "net/url_request/url_request_context_getter.h"
class GeolocationArbitratorDependencyFactory;
@@ -27,8 +27,6 @@ namespace net {
class URLRequestContextGetter;
}
-struct Geoposition;
-
// This class is responsible for handling updates from multiple underlying
// providers and resolving them to a single 'best' location fix at any given
// moment.
@@ -84,8 +82,8 @@ class CONTENT_EXPORT GeolocationArbitrator
// Returns true if |new_position| is an improvement over |old_position|.
// Set |from_same_provider| to true if both the positions came from the same
// provider.
- bool IsNewPositionBetter(const Geoposition& old_position,
- const Geoposition& new_position,
+ bool IsNewPositionBetter(const content::Geoposition& old_position,
+ const content::Geoposition& new_position,
bool from_same_provider) const;
scoped_refptr<GeolocationArbitratorDependencyFactory> dependency_factory_;
@@ -98,7 +96,7 @@ class CONTENT_EXPORT GeolocationArbitrator
const LocationProviderBase* position_provider_;
bool is_permission_granted_;
// The current best estimate of our position.
- Geoposition position_;
+ content::Geoposition position_;
DISALLOW_COPY_AND_ASSIGN(GeolocationArbitrator);
};
« no previous file with comments | « content/browser/geolocation/libgps_wrapper_linux.cc ('k') | content/browser/geolocation/location_arbitrator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698