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

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

Issue 55463002: Remove PNaCl's RequestFirstInstall, use resource throttle instead (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reorder functions Created 7 years, 1 month 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/nacl_host/nacl_host_message_filter.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/nacl_host/nacl_host_message_filter.cc
diff --git a/chrome/browser/nacl_host/nacl_host_message_filter.cc b/chrome/browser/nacl_host/nacl_host_message_filter.cc
index 0b7a8cb92ae774d9dfe21b281cbc6173c05a4476..1c87b6c02206329edb5a05b3cca158460e6b5f9d 100644
--- a/chrome/browser/nacl_host/nacl_host_message_filter.cc
+++ b/chrome/browser/nacl_host/nacl_host_message_filter.cc
@@ -39,8 +39,6 @@ bool NaClHostMessageFilter::OnMessageReceived(const IPC::Message& message,
IPC_BEGIN_MESSAGE_MAP_EX(NaClHostMessageFilter, message, *message_was_ok)
#if !defined(DISABLE_NACL)
IPC_MESSAGE_HANDLER_DELAY_REPLY(NaClHostMsg_LaunchNaCl, OnLaunchNaCl)
- IPC_MESSAGE_HANDLER(NaClHostMsg_EnsurePnaclInstalled,
- OnEnsurePnaclInstalled)
IPC_MESSAGE_HANDLER_DELAY_REPLY(NaClHostMsg_GetReadonlyPnaclFD,
OnGetReadonlyPnaclFd)
IPC_MESSAGE_HANDLER_DELAY_REPLY(NaClHostMsg_NaClCreateTemporaryFile,
@@ -87,27 +85,6 @@ void NaClHostMessageFilter::OnLaunchNaCl(
host->Launch(this, reply_msg, manifest_path);
}
-void NaClHostMessageFilter::ReplyEnsurePnaclInstalled(
- int instance,
- bool success) {
- Send(new NaClViewMsg_EnsurePnaclInstalledReply(instance, success));
-}
-
-void NaClHostMessageFilter::SendProgressEnsurePnaclInstalled(
- int instance,
- const nacl::PnaclInstallProgress& progress) {
- // TODO(jvoung): actually send an IPC.
-}
-
-void NaClHostMessageFilter::OnEnsurePnaclInstalled(
- int instance) {
- nacl_file_host::EnsurePnaclInstalled(
- base::Bind(&NaClHostMessageFilter::ReplyEnsurePnaclInstalled,
- this, instance),
- base::Bind(&NaClHostMessageFilter::SendProgressEnsurePnaclInstalled,
- this, instance));
-}
-
void NaClHostMessageFilter::OnGetReadonlyPnaclFd(
const std::string& filename, IPC::Message* reply_msg) {
// This posts a task to another thread, but the renderer will
« no previous file with comments | « chrome/browser/nacl_host/nacl_host_message_filter.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698