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

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

Issue 2028823002: Refactor to make BlimpLocationProvider accessible to content layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addresses mvanouwerkerk's #81 comments 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
Index: content/browser/geolocation/location_arbitrator_impl.h
diff --git a/content/browser/geolocation/location_arbitrator_impl.h b/content/browser/geolocation/location_arbitrator_impl.h
index 60c9ac57a905d817611ca6e92531187aaa508083..0320689b8dc1b66e56f51db9f035e4cdb3fcedab 100644
--- a/content/browser/geolocation/location_arbitrator_impl.h
+++ b/content/browser/geolocation/location_arbitrator_impl.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include "base/callback_forward.h"
+#include "base/cancelable_callback.h"
#include "base/macros.h"
#include "base/memory/scoped_vector.h"
#include "base/strings/string16.h"
@@ -68,6 +69,10 @@ class CONTENT_EXPORT LocationArbitratorImpl : public LocationArbitrator {
// Takes ownership of |provider| on entry; it will either be added to
// |providers_| or deleted on error (e.g. it fails to start).
void RegisterProvider(LocationProvider* provider);
+
+ // Checks for either an override or a system location provider and
+ // calls RegisterProvider for it.
+ void RegisterSystemProvider();
Wez 2016/06/10 23:40:34 nit: If you're going to have a per-function commen
CJ 2016/06/13 23:45:20 Done.
void OnAccessTokenStoresLoaded(
AccessTokenStore::AccessTokenMap access_token_map,
net::URLRequestContextGetter* context_getter);
@@ -87,6 +92,9 @@ class CONTENT_EXPORT LocationArbitratorImpl : public LocationArbitrator {
scoped_refptr<AccessTokenStore> access_token_store_;
LocationUpdateCallback arbitrator_update_callback_;
LocationProvider::LocationProviderUpdateCallback provider_update_callback_;
+ base::CancelableCallback<void(AccessTokenStore::AccessTokenMap,
+ net::URLRequestContextGetter*)>
+ token_store_callback_;
ScopedVector<LocationProvider> providers_;
bool enable_high_accuracy_;
// The provider which supplied the current |position_|

Powered by Google App Engine
This is Rietveld 408576698