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

Unified Diff: components/nacl/loader/nonsfi/nonsfi_listener.h

Issue 1125043002: NaCl: Stop sending resource FDs with NaClProcessMsg_Start (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 years, 7 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 | « components/nacl/loader/nacl_listener.cc ('k') | components/nacl/loader/nonsfi/nonsfi_listener.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/loader/nonsfi/nonsfi_listener.h
diff --git a/components/nacl/loader/nonsfi/nonsfi_listener.h b/components/nacl/loader/nonsfi/nonsfi_listener.h
index e755e85e5f1b2f36ebec9a688fe79a8b5ae122fc..51ad6ab627a621773432bfdbd5c1d7db32c38152 100644
--- a/components/nacl/loader/nonsfi/nonsfi_listener.h
+++ b/components/nacl/loader/nonsfi/nonsfi_listener.h
@@ -5,12 +5,16 @@
#ifndef COMPONENTS_NACL_LOADER_NONSFI_NONSFI_LISTENER_H_
#define COMPONENTS_NACL_LOADER_NONSFI_NONSFI_LISTENER_H_
+#include <map>
+#include <utility>
+
#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/thread.h"
+#include "components/nacl/common/nacl_types.h"
#include "ipc/ipc_listener.h"
namespace IPC {
@@ -37,6 +41,8 @@ class NonSfiListener : public IPC::Listener {
private:
bool OnMessageReceived(const IPC::Message& msg) override;
+ void OnAddPrefetchedResource(
+ const nacl::NaClResourcePrefetchResult& prefetched_resource_file);
void OnStart(const nacl::NaClStartParams& params);
base::Thread io_thread_;
@@ -44,6 +50,8 @@ class NonSfiListener : public IPC::Listener {
scoped_ptr<IPC::SyncChannel> channel_;
scoped_refptr<NaClTrustedListener> trusted_listener_;
+ scoped_ptr<std::map<std::string, int>> key_fd_map_;
+
DISALLOW_COPY_AND_ASSIGN(NonSfiListener);
};
« no previous file with comments | « components/nacl/loader/nacl_listener.cc ('k') | components/nacl/loader/nonsfi/nonsfi_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698