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

Unified Diff: chrome/browser/permissions/permission_request_id.cc

Issue 1316863010: browser: implement multiple permission requesting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@request-multiple-content
Patch Set: Rebase on master Created 5 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
« no previous file with comments | « chrome/browser/permissions/permission_request_id.h ('k') | chromecast/browser/cast_permission_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/permissions/permission_request_id.cc
diff --git a/chrome/browser/permissions/permission_request_id.cc b/chrome/browser/permissions/permission_request_id.cc
index 9a994859050b75bd2c9cba9a63f6c78dec421f4f..e3668ae91160c3ab2162580c866eaa2746c4dbdb 100644
--- a/chrome/browser/permissions/permission_request_id.cc
+++ b/chrome/browser/permissions/permission_request_id.cc
@@ -5,6 +5,16 @@
#include "chrome/browser/permissions/permission_request_id.h"
#include "base/strings/stringprintf.h"
+#include "content/public/browser/render_frame_host.h"
+#include "content/public/browser/render_process_host.h"
+
+PermissionRequestID::PermissionRequestID(
+ content::RenderFrameHost* render_frame_host,
+ int request_id)
+ : render_process_id_(render_frame_host->GetProcess()->GetID()),
+ render_frame_id_(render_frame_host->GetRoutingID()),
+ request_id_(request_id) {
+}
PermissionRequestID::PermissionRequestID(int render_process_id,
int render_frame_id,
« no previous file with comments | « chrome/browser/permissions/permission_request_id.h ('k') | chromecast/browser/cast_permission_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698