OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ |
6 #define CHROME_NACL_NACL_LISTENER_H_ | 6 #define COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/synchronization/waitable_event.h" | 11 #include "base/synchronization/waitable_event.h" |
12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
13 #include "chrome/common/nacl_types.h" | 13 #include "components/nacl/common/nacl_types.h" |
14 #include "ipc/ipc_listener.h" | 14 #include "ipc/ipc_listener.h" |
15 | 15 |
16 namespace IPC { | 16 namespace IPC { |
17 class SyncChannel; | 17 class SyncChannel; |
18 class SyncMessageFilter; | 18 class SyncMessageFilter; |
19 } | 19 } |
20 | 20 |
21 // The NaClListener is an IPC channel listener that waits for a | 21 // The NaClListener is an IPC channel listener that waits for a |
22 // request to start a NaCl module. | 22 // request to start a NaCl module. |
23 class NaClListener : public IPC::Listener { | 23 class NaClListener : public IPC::Listener { |
(...skipping 27 matching lines...) Expand all Loading... |
51 #if defined(OS_LINUX) | 51 #if defined(OS_LINUX) |
52 size_t prereserved_sandbox_size_; | 52 size_t prereserved_sandbox_size_; |
53 #endif | 53 #endif |
54 | 54 |
55 // Used to identify what thread we're on. | 55 // Used to identify what thread we're on. |
56 base::MessageLoop* main_loop_; | 56 base::MessageLoop* main_loop_; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(NaClListener); | 58 DISALLOW_COPY_AND_ASSIGN(NaClListener); |
59 }; | 59 }; |
60 | 60 |
61 #endif // CHROME_NACL_NACL_LISTENER_H_ | 61 #endif // COMPONENTS_NACL_LOADER_NACL_LISTENER_H_ |
OLD | NEW |