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

Unified Diff: content/browser/geolocation/network_location_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/network_location_provider.h
diff --git a/content/browser/geolocation/network_location_provider.h b/content/browser/geolocation/network_location_provider.h
index 787adb6c9d91b23b93a2f90ce0be0a06498a8b66..03ae8fa057c1f8978148d0ea60ee1d63af471c42 100644
--- a/content/browser/geolocation/network_location_provider.h
+++ b/content/browser/geolocation/network_location_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.
@@ -7,7 +7,6 @@
#pragma once
#include <list>
-#include <string>
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
@@ -79,7 +78,7 @@ class NetworkLocationProvider
virtual void StopProvider() OVERRIDE;
virtual void GetPosition(Geoposition *position) OVERRIDE;
virtual void UpdatePosition() OVERRIDE;
- virtual void OnPermissionGranted(const GURL& requesting_frame) OVERRIDE;
+ virtual void OnPermissionGranted() OVERRIDE;
private:
// Satisfies a position request from cache or network.
@@ -123,9 +122,10 @@ class NetworkLocationProvider
// The current best position estimate.
Geoposition position_;
- bool is_new_data_available_;
+ // Whether permission has been granted for the provider to operate.
+ bool is_permission_granted_;
- std::string most_recent_authorized_host_;
+ bool is_new_data_available_;
// The network location request object, and the url it uses.
scoped_ptr<NetworkLocationRequest> request_;
« no previous file with comments | « content/browser/geolocation/mock_location_provider.cc ('k') | content/browser/geolocation/network_location_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698