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

Side by Side Diff: components/nacl/loader/nacl_listener.h

Issue 2081183005: Use ChannelMojo from the browser to NaCl loader process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-ipc-channel-handle
Patch Set: rebase Created 4 years, 5 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
« no previous file with comments | « components/nacl/loader/nacl_helper_win_64.cc ('k') | components/nacl/loader/nacl_listener.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ 5 #ifndef COMPONENTS_NACL_LOADER_NACL_LISTENER_H_
6 #define COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ 6 #define COMPONENTS_NACL_LOADER_NACL_LISTENER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 10 matching lines...) Expand all
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "components/nacl/common/nacl_types.h" 22 #include "components/nacl/common/nacl_types.h"
23 #include "components/nacl/loader/nacl_trusted_listener.h" 23 #include "components/nacl/loader/nacl_trusted_listener.h"
24 #include "ipc/ipc_listener.h" 24 #include "ipc/ipc_listener.h"
25 25
26 namespace IPC { 26 namespace IPC {
27 class SyncChannel; 27 class SyncChannel;
28 class SyncMessageFilter; 28 class SyncMessageFilter;
29 } 29 }
30 30
31 namespace mojo {
32 namespace edk {
33 class ScopedIPCSupport;
34 } // namespace edk
35 } // namespace mojo
36
31 // The NaClListener is an IPC channel listener that waits for a 37 // The NaClListener is an IPC channel listener that waits for a
32 // request to start a NaCl module. 38 // request to start a NaCl module.
33 class NaClListener : public IPC::Listener { 39 class NaClListener : public IPC::Listener {
34 public: 40 public:
35 NaClListener(); 41 NaClListener();
36 ~NaClListener() override; 42 ~NaClListener() override;
37 // Listen for a request to launch a NaCl module. 43 // Listen for a request to launch a NaCl module.
38 void Listen(); 44 void Listen();
39 45
40 bool Send(IPC::Message* msg); 46 bool Send(IPC::Message* msg);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; 118 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
113 119
114 typedef std::map< 120 typedef std::map<
115 std::string, // manifest key 121 std::string, // manifest key
116 std::pair<IPC::PlatformFileForTransit, 122 std::pair<IPC::PlatformFileForTransit,
117 base::FilePath> > PrefetchedResourceFilesMap; 123 base::FilePath> > PrefetchedResourceFilesMap;
118 PrefetchedResourceFilesMap prefetched_resource_files_; 124 PrefetchedResourceFilesMap prefetched_resource_files_;
119 125
120 bool is_started_; 126 bool is_started_;
121 127
128 std::unique_ptr<mojo::edk::ScopedIPCSupport> mojo_ipc_support_;
129
122 DISALLOW_COPY_AND_ASSIGN(NaClListener); 130 DISALLOW_COPY_AND_ASSIGN(NaClListener);
123 }; 131 };
124 132
125 #endif // COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ 133 #endif // COMPONENTS_NACL_LOADER_NACL_LISTENER_H_
OLDNEW
« no previous file with comments | « components/nacl/loader/nacl_helper_win_64.cc ('k') | components/nacl/loader/nacl_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698