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

Unified Diff: content/public/browser/geolocation_provider.h

Issue 2127973002: Geolocation: change GeolocationDelegate to injected by content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: simplified shell_content_browser_client.cc Created 4 years, 5 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/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;
« no previous file with comments | « content/browser/geolocation/geolocation_provider_impl.cc ('k') | content/shell/browser/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698