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

Side by Side Diff: chrome/browser/geolocation/geolocation_permission_request_id.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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_REQUEST_ID_H_
6 #define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_REQUEST_ID_H_
7
8 #include <string>
9
10 // Uniquely identifies a particular geolocation permission request.
11 class GeolocationPermissionRequestID {
12 public:
13 GeolocationPermissionRequestID(int render_process_id,
14 int render_view_id,
15 int bridge_id);
16 ~GeolocationPermissionRequestID();
17
18 int render_process_id() const { return render_process_id_; }
19 int render_view_id() const { return render_view_id_; }
20 int bridge_id() const { return bridge_id_; }
21
22 bool Equals(const GeolocationPermissionRequestID& other) const;
23 bool IsForSameTabAs(const GeolocationPermissionRequestID& other) const;
24 std::string ToString() const;
25
26 private:
27 int render_process_id_;
28 int render_view_id_;
29 int bridge_id_;
30
31 // Purposefully do not disable copying, as this is stored in STL containers.
32 };
33
34 #endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_PERMISSION_REQUEST_ID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698