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

Unified Diff: content/renderer/pepper/host_resource_var.cc

Issue 24196005: [PPAPI] ResourceVar now holds a pending renderer and browser host ID. (Closed) Base URL: http://git.chromium.org/chromium/src.git@pepper-resourcerawvardata
Patch Set: Remove unnecessary static_cast. Created 7 years, 3 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 | « content/renderer/pepper/host_resource_var.h ('k') | ppapi/proxy/raw_var_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/host_resource_var.cc
diff --git a/content/renderer/pepper/host_resource_var.cc b/content/renderer/pepper/host_resource_var.cc
index a59bed37f6f286f8a02ecbb8948712a8fe7f942e..810a949965e9ce5f9ede0f8eb1d437ec1798467e 100644
--- a/content/renderer/pepper/host_resource_var.cc
+++ b/content/renderer/pepper/host_resource_var.cc
@@ -9,16 +9,29 @@ namespace content {
HostResourceVar::HostResourceVar() : pp_resource_(0) {}
HostResourceVar::HostResourceVar(PP_Resource pp_resource)
- : pp_resource_(pp_resource) {}
+ : pp_resource_(pp_resource),
+ pending_renderer_host_id_(0),
+ pending_browser_host_id_(0) {}
-HostResourceVar::HostResourceVar(const IPC::Message& creation_message)
+HostResourceVar::HostResourceVar(int pending_renderer_host_id,
+ const IPC::Message& creation_message)
: pp_resource_(0),
+ pending_renderer_host_id_(pending_renderer_host_id),
+ pending_browser_host_id_(0),
creation_message_(new IPC::Message(creation_message)) {}
PP_Resource HostResourceVar::GetPPResource() const {
return pp_resource_;
}
+int HostResourceVar::GetPendingRendererHostId() const {
+ return pending_renderer_host_id_;
+}
+
+int HostResourceVar::GetPendingBrowserHostId() const {
+ return pending_browser_host_id_;
+}
+
const IPC::Message* HostResourceVar::GetCreationMessage() const {
return creation_message_.get();
}
« no previous file with comments | « content/renderer/pepper/host_resource_var.h ('k') | ppapi/proxy/raw_var_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698