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

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

Issue 11269002: Introduce GeolocationPermissionRequestID, a wrapper struct to contain the (render process ID, rende… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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/public/browser/geolocation.h
===================================================================
--- content/public/browser/geolocation.h (revision 163741)
+++ content/public/browser/geolocation.h (working copy)
@@ -5,6 +5,8 @@
#ifndef CONTENT_PUBLIC_BROWSER_GEOLOCATION_H_
#define CONTENT_PUBLIC_BROWSER_GEOLOCATION_H_
+#include <string>
+
#include "base/callback_forward.h"
#include "content/common/content_export.h"
@@ -14,6 +16,21 @@
typedef base::Callback<void(const Geoposition&)> GeolocationUpdateCallback;
+// Uniquely identifies a particular geolocation permission request.
+struct CONTENT_EXPORT GeolocationPermissionRequestID {
+ GeolocationPermissionRequestID(int render_process_id,
+ int render_view_id,
+ int bridge_id);
+
+ bool Equals(const GeolocationPermissionRequestID& other) const;
Jói 2012/10/24 09:48:36 I think our coding style only allows constructor,
jam 2012/10/24 16:39:43 you're right, the style guide is specific that if
+ bool IsForSameTabAs(const GeolocationPermissionRequestID& other) const;
+ std::string ToString() const;
+
+ int render_process_id;
+ int render_view_id;
+ int bridge_id;
+};
+
// Overrides the current location for testing. This function may be called on
// any thread. The completion callback will be invoked asynchronously on the
// calling thread when the override operation is completed.

Powered by Google App Engine
This is Rietveld 408576698