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

Unified Diff: chrome/renderer/pepper/pnacl_translation_resource_host.h

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/chrome_browser.gypi ('k') | chrome/renderer/pepper/pnacl_translation_resource_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper/pnacl_translation_resource_host.h
diff --git a/chrome/renderer/pepper/pnacl_translation_resource_host.h b/chrome/renderer/pepper/pnacl_translation_resource_host.h
index 59585442f78da19bea8cfed4bc3377464f05c4f4..6570cd048ed5bdc06b04494d7e6d40d7c3bf1355 100644
--- a/chrome/renderer/pepper/pnacl_translation_resource_host.h
+++ b/chrome/renderer/pepper/pnacl_translation_resource_host.h
@@ -6,7 +6,6 @@
#define CHROME_RENDERER_PEPPER_PNACL_TRANSLATION_RESOURCE_HOST_H_
#include <map>
-#include <vector>
#include "ipc/ipc_channel_proxy.h"
#include "ipc/ipc_platform_file.h"
@@ -35,10 +34,6 @@ class PnaclTranslationResourceHost : public IPC::ChannelProxy::MessageFilter {
scoped_refptr<ppapi::TrackedCallback> callback);
void ReportTranslationFinished(PP_Instance instance, PP_Bool success);
- // Ensure that PNaCl resources (pnacl-llc.nexe, linker, libs) are installed.
- void EnsurePnaclInstalled(PP_Instance instance,
- scoped_refptr<ppapi::TrackedCallback> callback);
-
protected:
virtual ~PnaclTranslationResourceHost();
@@ -59,9 +54,6 @@ class PnaclTranslationResourceHost : public IPC::ChannelProxy::MessageFilter {
// Maps the instance with an outstanding cache request to the info
// about that request.
typedef std::map<PP_Instance, CacheRequestInfo> CacheRequestInfoMap;
- // A list of outstanding EnsurePnaclInstalled requests.
- typedef std::vector<scoped_refptr<ppapi::TrackedCallback> >
- EnsurePnaclInstalledList;
// IPC::ChannelProxy::MessageFilter implementation.
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE;
@@ -76,22 +68,16 @@ class PnaclTranslationResourceHost : public IPC::ChannelProxy::MessageFilter {
scoped_refptr<ppapi::TrackedCallback> callback);
void SendReportTranslationFinished(PP_Instance instance,
PP_Bool success);
- void SendEnsurePnaclInstalled(PP_Instance instance,
- scoped_refptr<ppapi::TrackedCallback> callback);
-
void OnNexeTempFileReply(PP_Instance instance,
bool is_hit,
IPC::PlatformFileForTransit file);
void CleanupCacheRequests();
- void OnEnsurePnaclInstalledReply(PP_Instance instance, bool success);
- void CleanupEnsurePnaclRequests();
scoped_refptr<base::MessageLoopProxy> io_message_loop_;
// Should be accessed on the io thread.
IPC::Channel* channel_;
CacheRequestInfoMap pending_cache_requests_;
- EnsurePnaclInstalledList pending_ensure_pnacl_requests_;
DISALLOW_COPY_AND_ASSIGN(PnaclTranslationResourceHost);
};
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/renderer/pepper/pnacl_translation_resource_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698