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

Unified Diff: chrome/browser/nacl_host/nacl_process_host.cc

Issue 10214007: Add an IPC channel between the NaCl loader process and the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | « no previous file | chrome/common/nacl_messages.h » ('j') | chrome/nacl/nacl_listener.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/nacl_host/nacl_process_host.cc
===================================================================
--- chrome/browser/nacl_host/nacl_process_host.cc (revision 133072)
+++ chrome/browser/nacl_host/nacl_process_host.cc (working copy)
@@ -409,6 +409,7 @@
struct NaClProcessHost::NaClInternal {
std::vector<nacl::Handle> sockets_for_renderer;
std::vector<nacl::Handle> sockets_for_sel_ldr;
+ std::string channel_name;
Mark Seaborn 2012/04/25 00:40:39 This doesn't need to go in NaClInternal. You can
bbudge 2012/04/25 00:50:04 Yes, I'll remove it from this struct.
};
// -----------------------------------------------------------------------------
@@ -516,6 +517,9 @@
return;
}
+ internal_->channel_name =
+ IPC::Channel::GenerateVerifiedChannelID(std::string());
bbudge 2012/04/25 00:50:04 This bit of code doesn't seem to work, in that the
+
// Rather than creating a socket pair in the renderer, and passing
// one side through the browser to sel_ldr, socket pairs are created
// in the browser and then passed to the renderer and sel_ldr.
@@ -959,6 +963,7 @@
NaClBrowser* nacl_browser = NaClBrowser::GetInstance();
nacl::NaClStartParams params;
+ params.channel_name = internal_->channel_name;
params.validation_cache_key = nacl_browser->GetValidatorCacheKey();
params.version = chrome::VersionInfo().CreateVersionString();
params.enable_exception_handling = enable_exception_handling_;
« no previous file with comments | « no previous file | chrome/common/nacl_messages.h » ('j') | chrome/nacl/nacl_listener.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698