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

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

Issue 10107017: Remove requesting_frame parameters from Geolocation stack (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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 bf9efe053a8ee412892bb51e6888fc7cfbd0dd1f..cbecf6411d3d3a4e08e02c0aee9d39975b73c557 100644
--- a/content/browser/geolocation/location_arbitrator.h
+++ b/content/browser/geolocation/location_arbitrator.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -14,11 +14,9 @@
#include "content/common/content_export.h"
#include "content/common/geoposition.h"
#include "content/public/browser/access_token_store.h"
-#include "googleurl/src/gurl.h"
#include "net/url_request/url_request_context_getter.h"
class GeolocationArbitratorDependencyFactory;
-class GURL;
class LocationProviderBase;
namespace content {
@@ -58,7 +56,7 @@ class CONTENT_EXPORT GeolocationArbitrator
// infobar prompt) or inferred from a persisted site permission.
// The arbitrator will inform all providers of this, which may in turn use
// this information to modify their internal policy.
- void OnPermissionGranted(const GURL& requesting_frame);
+ void OnPermissionGranted();
// Returns true if this arbitrator has received at least one call to
// OnPermissionGranted().
@@ -98,7 +96,7 @@ class CONTENT_EXPORT GeolocationArbitrator
GeolocationObserverOptions current_provider_options_;
// The provider which supplied the current |position_|
const LocationProviderBase* position_provider_;
- GURL most_recent_authorized_frame_;
+ bool is_permission_granted_;
// The current best estimate of our position.
Geoposition position_;

Powered by Google App Engine
This is Rietveld 408576698