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

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

Issue 10107017: Remove requesting_frame parameters from Geolocation stack (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comment addressed. 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/geolocation_provider.h
diff --git a/content/browser/geolocation/geolocation_provider.h b/content/browser/geolocation/geolocation_provider.h
index b627b1e6f9eadbaa0544ad1726a4db1028e9f7e8..a45a365f23066aa71491b65ce8aa07e7f05cb629 100644
--- a/content/browser/geolocation/geolocation_provider.h
+++ b/content/browser/geolocation/geolocation_provider.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.
@@ -12,7 +12,6 @@
#include "content/browser/geolocation/geolocation_observer.h"
#include "content/common/content_export.h"
#include "content/common/geoposition.h"
-#include "googleurl/src/gurl.h"
class GeolocationArbitrator;
@@ -43,7 +42,7 @@ class CONTENT_EXPORT GeolocationProvider
// via AddObserver(). Returns true if the observer was removed.
bool RemoveObserver(GeolocationObserver* delegate);
- void OnPermissionGranted(const GURL& requesting_frame);
+ void OnPermissionGranted();
bool HasPermissionBeenGranted() const;
// GeolocationObserver
@@ -77,7 +76,7 @@ class CONTENT_EXPORT GeolocationProvider
void StartProviders(const GeolocationObserverOptions& options);
// Update the providers on the geolocation thread, which must be running.
- void InformProvidersPermissionGranted(const GURL& requesting_frame);
+ void InformProvidersPermissionGranted();
// Notifies observers when a new position fix is available.
void NotifyObservers(const Geoposition& position);
@@ -90,7 +89,7 @@ class CONTENT_EXPORT GeolocationProvider
// Only used on client thread
ObserverMap observers_;
- GURL most_recent_authorized_frame_;
+ bool is_permission_granted_;
Geoposition position_;
// Only to be used on the geolocation thread.
« no previous file with comments | « content/browser/geolocation/geolocation_dispatcher_host.cc ('k') | content/browser/geolocation/geolocation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698