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

Side by Side Diff: components/nacl/loader/nacl_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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_NACL_NACL_LISTENER_H_ 5 #ifndef CHROME_NACL_NACL_LISTENER_H_
6 #define CHROME_NACL_NACL_LISTENER_H_ 6 #define CHROME_NACL_NACL_LISTENER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 bool OnMessageReceived(const IPC::Message& msg) override; 67 bool OnMessageReceived(const IPC::Message& msg) override;
68 68
69 typedef base::Callback<void(const IPC::Message&, 69 typedef base::Callback<void(const IPC::Message&,
70 IPC::PlatformFileForTransit, 70 IPC::PlatformFileForTransit,
71 base::FilePath)> OpenResourceReplyCallback; 71 base::FilePath)> OpenResourceReplyCallback;
72 72
73 bool OnOpenResource(const IPC::Message& msg, 73 bool OnOpenResource(const IPC::Message& msg,
74 const std::string& key, 74 const std::string& key,
75 OpenResourceReplyCallback cb); 75 OpenResourceReplyCallback cb);
76 76
77 void OnSetPrefetchedResource(
78 const std::vector<
79 nacl::NaClResourcePrefetchResult>& prefetched_resource_files);
77 void OnStart(const nacl::NaClStartParams& params); 80 void OnStart(const nacl::NaClStartParams& params);
78 81
79 // A channel back to the browser. 82 // A channel back to the browser.
80 scoped_ptr<IPC::SyncChannel> channel_; 83 scoped_ptr<IPC::SyncChannel> channel_;
81 84
82 // A filter that allows other threads to use the channel. 85 // A filter that allows other threads to use the channel.
83 scoped_refptr<IPC::SyncMessageFilter> filter_; 86 scoped_refptr<IPC::SyncMessageFilter> filter_;
84 87
85 base::WaitableEvent shutdown_event_; 88 base::WaitableEvent shutdown_event_;
86 base::Thread io_thread_; 89 base::Thread io_thread_;
(...skipping 22 matching lines...) Expand all
109 typedef std::map< 112 typedef std::map<
110 std::string, // manifest key 113 std::string, // manifest key
111 std::pair<IPC::PlatformFileForTransit, 114 std::pair<IPC::PlatformFileForTransit,
112 base::FilePath> > PrefetchedResourceFilesMap; 115 base::FilePath> > PrefetchedResourceFilesMap;
113 PrefetchedResourceFilesMap prefetched_resource_files_; 116 PrefetchedResourceFilesMap prefetched_resource_files_;
114 117
115 DISALLOW_COPY_AND_ASSIGN(NaClListener); 118 DISALLOW_COPY_AND_ASSIGN(NaClListener);
116 }; 119 };
117 120
118 #endif // CHROME_NACL_NACL_LISTENER_H_ 121 #endif // CHROME_NACL_NACL_LISTENER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698