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

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

Issue 2104193002: Geolocation: Extract GeolocationProvider::Delegate into GeolocationDelegate (no new code) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: jam@ nit: content/browser/geolocation/geolocation_delegate.cc --> content/public/browser Created 4 years, 6 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
« no previous file with comments | « content/public/browser/geolocation_delegate.cc ('k') | content/public/browser/geolocation_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/geolocation_provider.h
diff --git a/content/public/browser/geolocation_provider.h b/content/public/browser/geolocation_provider.h
index bf484a0c814740fead567818cd849222b76b3dbf..0f247a1d2e8d17388814f2acd2ba4e14d1cb1270 100644
--- a/content/public/browser/geolocation_provider.h
+++ b/content/public/browser/geolocation_provider.h
@@ -11,9 +11,7 @@
#include "content/common/content_export.h"
namespace content {
-class AccessTokenStore;
struct Geoposition;
-class LocationProvider;
// This is the main API to the geolocation subsystem. The application will hold
// a single instance of this class and can register multiple clients to be
@@ -28,29 +26,6 @@ class LocationProvider;
// uses run on a separate Geolocation thread.
class GeolocationProvider {
public:
- // An embedder of Geolocation may override these class' methods to provide
- // specific functionality.
- // TODO(mcasas): Extract this class into a file of its own.
- class CONTENT_EXPORT Delegate {
- public:
- // Returns true if the location API should use network-based location
- // approximation in addition to the system provider, if any.
- virtual bool UseNetworkLocationProviders();
-
- // Creates a new AccessTokenStore for geolocation. May return nullptr.
- // TODO(mcasas): consider changing it return type to std::unique_ptr<> to
- // clarify ownership, https://crbug.com/623114.
- virtual AccessTokenStore* CreateAccessTokenStore();
-
- // Allows an embedder to return its own LocationProvider implementation.
- // Return nullptr to use the default one for the platform to be created.
- // Caller takes ownership of the returned LocationProvider. FYI: Used by an
- // external project; please don't remove. Contact Viatcheslav Ostapenko at
- // sl.ostapenko@samsung.com for more information.
- // TODO(mcasas): return std::unique_ptr<> instead, https://crbug.com/623132.
- virtual LocationProvider* OverrideSystemLocationProvider();
- };
-
CONTENT_EXPORT static GeolocationProvider* GetInstance();
typedef base::Callback<void(const Geoposition&)> LocationUpdateCallback;
« no previous file with comments | « content/public/browser/geolocation_delegate.cc ('k') | content/public/browser/geolocation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698