OLD | NEW |
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 |
11 #include <map> | 11 #include <map> |
12 #include <memory> | 12 #include <memory> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/shared_memory.h" | 16 #include "base/memory/shared_memory.h" |
17 #include "base/synchronization/waitable_event.h" | 17 #include "base/synchronization/waitable_event.h" |
18 #include "base/threading/thread.h" | 18 #include "base/threading/thread.h" |
19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
20 #include "components/nacl/common/nacl_types.h" | 20 #include "components/nacl/common/nacl_types.h" |
21 #include "components/nacl/loader/nacl_trusted_listener.h" | 21 #include "components/nacl/loader/nacl_trusted_listener.h" |
22 #include "ipc/ipc_listener.h" | 22 #include "ipc/ipc_listener.h" |
23 | 23 |
24 namespace IPC { | 24 namespace IPC { |
| 25 class ScopedIPCSupport; |
25 class SyncChannel; | 26 class SyncChannel; |
26 class SyncMessageFilter; | 27 class SyncMessageFilter; |
27 } | 28 } |
28 | 29 |
29 // The NaClListener is an IPC channel listener that waits for a | 30 // The NaClListener is an IPC channel listener that waits for a |
30 // request to start a NaCl module. | 31 // request to start a NaCl module. |
31 class NaClListener : public IPC::Listener { | 32 class NaClListener : public IPC::Listener { |
32 public: | 33 public: |
33 NaClListener(); | 34 NaClListener(); |
34 ~NaClListener() override; | 35 ~NaClListener() override; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 base::MessageLoop* main_loop_; | 111 base::MessageLoop* main_loop_; |
111 | 112 |
112 typedef std::map< | 113 typedef std::map< |
113 std::string, // manifest key | 114 std::string, // manifest key |
114 std::pair<IPC::PlatformFileForTransit, | 115 std::pair<IPC::PlatformFileForTransit, |
115 base::FilePath> > PrefetchedResourceFilesMap; | 116 base::FilePath> > PrefetchedResourceFilesMap; |
116 PrefetchedResourceFilesMap prefetched_resource_files_; | 117 PrefetchedResourceFilesMap prefetched_resource_files_; |
117 | 118 |
118 bool is_started_; | 119 bool is_started_; |
119 | 120 |
| 121 std::unique_ptr<IPC::ScopedIPCSupport> mojo_ipc_support_; |
| 122 |
120 DISALLOW_COPY_AND_ASSIGN(NaClListener); | 123 DISALLOW_COPY_AND_ASSIGN(NaClListener); |
121 }; | 124 }; |
122 | 125 |
123 #endif // COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ | 126 #endif // COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ |
OLD | NEW |