Index: chrome/browser/geolocation/geolocation_permission_request_id.h |
=================================================================== |
--- chrome/browser/geolocation/geolocation_permission_request_id.h (revision 0) |
+++ chrome/browser/geolocation/geolocation_permission_request_id.h (working copy) |
@@ -0,0 +1,34 @@ |
+// 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. |
+ |
+#ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_REQUEST_ID_H_ |
+#define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_REQUEST_ID_H_ |
+ |
+#include <string> |
+ |
+// Uniquely identifies a particular geolocation permission request. |
+class GeolocationPermissionRequestID { |
+ public: |
+ GeolocationPermissionRequestID(int render_process_id, |
+ int render_view_id, |
+ int bridge_id); |
+ ~GeolocationPermissionRequestID(); |
+ |
+ int render_process_id() const { return render_process_id_; } |
+ int render_view_id() const { return render_view_id_; } |
+ int bridge_id() const { return bridge_id_; } |
+ |
+ bool Equals(const GeolocationPermissionRequestID& other) const; |
+ bool IsForSameTabAs(const GeolocationPermissionRequestID& other) const; |
+ std::string ToString() const; |
+ |
+ private: |
+ int render_process_id_; |
+ int render_view_id_; |
+ int bridge_id_; |
+ |
+ // Purposefully do not disable copying, as this is stored in STL containers. |
+}; |
+ |
+#endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_REQUEST_ID_H_ |
Property changes on: chrome/browser/geolocation/geolocation_permission_request_id.h |
___________________________________________________________________ |
Added: svn:eol-style |
## -0,0 +1 ## |
+LF |
\ No newline at end of property |