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

Unified Diff: chrome/browser/geolocation/geolocation_confirm_infobar_delegate.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: chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h
===================================================================
--- chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h (revision 163741)
+++ chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h (working copy)
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_CONFIRM_INFOBAR_DELEGATE_H_
#include "chrome/browser/api/infobars/confirm_infobar_delegate.h"
+#include "chrome/browser/geolocation/geolocation_permission_request_id.h"
#include "googleurl/src/gurl.h"
#include <string>
@@ -21,14 +22,11 @@
GeolocationConfirmInfoBarDelegate(
InfoBarTabHelper* infobar_helper,
GeolocationInfoBarQueueController* controller,
- int render_process_id,
- int render_view_id,
- int bridge_id,
- const GURL& requesting_frame_url,
+ const GeolocationPermissionRequestID& id,
+ const GURL& requesting_frame,
const std::string& display_languages);
- int render_process_id() const { return render_process_id_; }
- int render_view_id() const { return render_view_id_; }
+ const GeolocationPermissionRequestID& id() const { return id_; }
protected:
// ConfirmInfoBarDelegate:
@@ -46,11 +44,8 @@
private:
GeolocationInfoBarQueueController* controller_;
- int render_process_id_;
- int render_view_id_;
- int bridge_id_;
-
- GURL requesting_frame_url_;
+ const GeolocationPermissionRequestID id_;
+ GURL requesting_frame_;
std::string display_languages_;
DISALLOW_IMPLICIT_CONSTRUCTORS(GeolocationConfirmInfoBarDelegate);

Powered by Google App Engine
This is Rietveld 408576698