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

Unified Diff: chrome/browser/geolocation/chrome_geolocation_permission_context.h

Issue 147543004: [Geolocation] Add permission bubble client. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix android, rebase Created 6 years, 10 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: chrome/browser/geolocation/chrome_geolocation_permission_context.h
diff --git a/chrome/browser/geolocation/chrome_geolocation_permission_context.h b/chrome/browser/geolocation/chrome_geolocation_permission_context.h
index acc9448a21aa567c3574853fb7fd677d00d0093a..0c7e600335367a3ad3e4ca8347b78bc974de1151 100644
--- a/chrome/browser/geolocation/chrome_geolocation_permission_context.h
+++ b/chrome/browser/geolocation/chrome_geolocation_permission_context.h
@@ -11,6 +11,10 @@
#include "chrome/browser/content_settings/permission_queue_controller.h"
#include "content/public/browser/geolocation_permission_context.h"
+namespace content {
+class WebContents;
+}
+
class PermissionRequestID;
class Profile;
@@ -38,15 +42,6 @@ class ChromeGeolocationPermissionContext
// Called on the UI thread when the profile is about to be destroyed.
void ShutdownOnUIThread();
- protected:
- virtual ~ChromeGeolocationPermissionContext();
-
- Profile* profile() const { return profile_; }
-
- // Return an instance of the infobar queue controller, creating it
- // if necessary.
- PermissionQueueController* QueueController();
-
// Notifies whether or not the corresponding bridge is allowed to use
// geolocation via
// GeolocationPermissionContext::SetGeolocationPermissionResponse().
@@ -56,12 +51,22 @@ class ChromeGeolocationPermissionContext
base::Callback<void(bool)> callback,
bool allowed);
+ protected:
+ virtual ~ChromeGeolocationPermissionContext();
+
+ Profile* profile() const { return profile_; }
+
+ // Return an instance of the infobar queue controller, creating it
+ // if necessary.
+ PermissionQueueController* QueueController();
+
// ChromeGeolocationPermissionContext implementation:
// Decide whether the geolocation permission should be granted.
// Calls PermissionDecided if permission can be decided non-interactively,
// or NotifyPermissionSet if permission decided by presenting an
// infobar to the user. Called on the UI thread.
- virtual void DecidePermission(const PermissionRequestID& id,
+ virtual void DecidePermission(content::WebContents* web_contents,
+ const PermissionRequestID& id,
const GURL& requesting_frame,
const GURL& embedder,
base::Callback<void(bool)> callback);
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/geolocation/chrome_geolocation_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698