Chromium Code Reviews| 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. |