OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TRUSTED_LISTENER_H_ | 5 #ifndef COMPONENTS_NACL_LOADER_NACL_TRUSTED_LISTENER_H_ |
6 #define COMPONENTS_NACL_LOADER_NACL_TRUSTED_LISTENER_H_ | 6 #define COMPONENTS_NACL_LOADER_NACL_TRUSTED_LISTENER_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
9 #include "ipc/ipc_channel_handle.h" | 10 #include "ipc/ipc_channel_handle.h" |
10 #include "ipc/ipc_listener.h" | 11 #include "ipc/ipc_listener.h" |
11 #include "ipc/ipc_sync_channel.h" | 12 #include "ipc/ipc_sync_channel.h" |
12 | 13 |
13 namespace base { | 14 namespace base { |
14 class SingleThreadTaskRunner; | 15 class SingleThreadTaskRunner; |
15 } | 16 } |
16 | 17 |
17 class NaClTrustedListener : public base::RefCounted<NaClTrustedListener>, | 18 class NaClTrustedListener : public base::RefCounted<NaClTrustedListener>, |
(...skipping 13 matching lines...) Expand all Loading... |
31 private: | 32 private: |
32 friend class base::RefCounted<NaClTrustedListener>; | 33 friend class base::RefCounted<NaClTrustedListener>; |
33 ~NaClTrustedListener() override; | 34 ~NaClTrustedListener() override; |
34 IPC::ChannelHandle channel_handle_; | 35 IPC::ChannelHandle channel_handle_; |
35 scoped_ptr<IPC::SyncChannel> channel_; | 36 scoped_ptr<IPC::SyncChannel> channel_; |
36 | 37 |
37 DISALLOW_COPY_AND_ASSIGN(NaClTrustedListener); | 38 DISALLOW_COPY_AND_ASSIGN(NaClTrustedListener); |
38 }; | 39 }; |
39 | 40 |
40 #endif // COMPONENTS_NACL_LOADER_NACL_TRUSTED_LISTENER_H_ | 41 #endif // COMPONENTS_NACL_LOADER_NACL_TRUSTED_LISTENER_H_ |
OLD | NEW |