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

Unified Diff: components/nacl/browser/nacl_process_host.cc

Issue 105873003: Superset of Nacl Keepalive patch & tests - NOT FOR LANDING DIRECTLY. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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: components/nacl/browser/nacl_process_host.cc
diff --git a/components/nacl/browser/nacl_process_host.cc b/components/nacl/browser/nacl_process_host.cc
index 2d154f38d986a846756618da10884de75f8dd870..6de1dbe6ae7f06b62a6537e6c9481223f7051440 100644
--- a/components/nacl/browser/nacl_process_host.cc
+++ b/components/nacl/browser/nacl_process_host.cc
@@ -49,6 +49,7 @@
#include "ppapi/host/ppapi_host.h"
#include "ppapi/proxy/ppapi_messages.h"
#include "ppapi/shared_impl/ppapi_nacl_channel_args.h"
+#include "ppapi/shared_impl/ppapi_switches.h"
#if defined(OS_POSIX)
#include <fcntl.h>
@@ -799,6 +800,8 @@ void NaClProcessHost::OnPpapiChannelCreated(
nacl_host_message_filter_->render_process_id(),
render_view_id_,
profile_directory_));
+ ppapi_host_->SetOnKeepaliveCallback(
+ NaClBrowser::GetDelegate()->GetOnKeepaliveCallback());
ppapi::PpapiNaClChannelArgs args;
args.off_the_record = nacl_host_message_filter_->off_the_record();
@@ -807,7 +810,11 @@ void NaClProcessHost::OnPpapiChannelCreated(
content::PluginService::GetInstance()->PpapiDevChannelSupported();
CommandLine* cmdline = CommandLine::ForCurrentProcess();
DCHECK(cmdline);
- std::string flag_whitelist[] = {switches::kV, switches::kVModule};
+ std::string flag_whitelist[] = {
+ switches::kPpapiKeepAliveThrottle,
+ switches::kV,
+ switches::kVModule,
+ };
for (size_t i = 0; i < arraysize(flag_whitelist); ++i) {
std::string value = cmdline->GetSwitchValueASCII(flag_whitelist[i]);
if (!value.empty()) {
« no previous file with comments | « components/nacl/browser/nacl_browser_delegate.h ('k') | components/nacl/browser/test_nacl_browser_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698