Index: content/public/browser/geolocation_provider.h |
diff --git a/content/public/browser/geolocation_provider.h b/content/public/browser/geolocation_provider.h |
index 0f247a1d2e8d17388814f2acd2ba4e14d1cb1270..9d6524aeb9445fa0b6ca634b87c9ce8506730309 100644 |
--- a/content/public/browser/geolocation_provider.h |
+++ b/content/public/browser/geolocation_provider.h |
@@ -11,6 +11,7 @@ |
#include "content/common/content_export.h" |
namespace content { |
+class GeolocationDelegate; |
struct Geoposition; |
// This is the main API to the geolocation subsystem. The application will hold |
@@ -28,6 +29,10 @@ class GeolocationProvider { |
public: |
CONTENT_EXPORT static GeolocationProvider* GetInstance(); |
+ // Optional: provide a Delegate to override typical services. |
+ CONTENT_EXPORT static void SetGeolocationDelegate( |
+ GeolocationDelegate* delegate); |
+ |
typedef base::Callback<void(const Geoposition&)> LocationUpdateCallback; |
typedef base::CallbackList<void(const Geoposition&)>::Subscription |
Subscription; |