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

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

Issue 197693003: Replace --ppapi-keep-alive-throttle command line switch with IPC parameter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move literal to .h to avoid static initializer Created 6 years, 9 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: components/nacl/browser/nacl_process_host.h
diff --git a/components/nacl/browser/nacl_process_host.h b/components/nacl/browser/nacl_process_host.h
index 9df7ade359b44d4cb6ba65af81fef9c4785b6025..eab94cde6b447172149eb1b43198597304417f2d 100644
--- a/components/nacl/browser/nacl_process_host.h
+++ b/components/nacl/browser/nacl_process_host.h
@@ -78,6 +78,9 @@ class NaClProcessHost : public content::BrowserChildProcessHostDelegate {
// Do any minimal work that must be done at browser startup.
static void EarlyStartup();
+ // Specifies throttling time in milliseconds for PpapiHostMsg_Keepalive IPCs.
+ static void SetPpapiKeepAliveThrottleForTesting(unsigned milliseconds);
+
// Initialize the new NaCl process. Result is returned by sending ipc
// message reply_msg.
void Launch(NaClHostMessageFilter* nacl_host_message_filter,
@@ -220,6 +223,9 @@ class NaClProcessHost : public content::BrowserChildProcessHostDelegate {
int render_view_id_;
+ // Throttling time in milliseconds for PpapiHostMsg_Keepalive IPCs.
+ static unsigned keepalive_throttle_interval_milliseconds_;
+
DISALLOW_COPY_AND_ASSIGN(NaClProcessHost);
};
« no previous file with comments | « chrome/browser/extensions/app_background_page_apitest.cc ('k') | components/nacl/browser/nacl_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698