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

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: git rebase master 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
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..b881c5bce19ff4857f67ff1f187d6de4fa39b2d8 100644
--- a/components/nacl/loader/nonsfi/nonsfi_listener.h
+++ b/components/nacl/loader/nonsfi/nonsfi_listener.h
@@ -5,12 +5,17 @@
#ifndef COMPONENTS_NACL_LOADER_NONSFI_NONSFI_LISTENER_H_
#define COMPONENTS_NACL_LOADER_NONSFI_NONSFI_LISTENER_H_
+#include <map>
+#include <utility>
+#include <vector>
+
#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 +42,9 @@ class NonSfiListener : public IPC::Listener {
private:
bool OnMessageReceived(const IPC::Message& msg) override;
+ void OnSetPrefetchedResource(
+ const std::vector<
+ nacl::NaClResourcePrefetchResult>& prefetched_resource_files);
void OnStart(const nacl::NaClStartParams& params);
base::Thread io_thread_;
@@ -44,6 +52,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);
};

Powered by Google App Engine
This is Rietveld 408576698