OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008 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 IPC_IPC_CHANNEL_WIN_H_ | 5 #ifndef IPC_IPC_CHANNEL_WIN_H_ |
6 #define IPC_IPC_CHANNEL_WIN_H_ | 6 #define IPC_IPC_CHANNEL_WIN_H_ |
7 | 7 |
8 #include "ipc/ipc_channel.h" | 8 #include "ipc/ipc_channel.h" |
9 | 9 |
10 #include <queue> | 10 #include <queue> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "base/scoped_ptr.h" | |
15 | 14 |
16 class NonThreadSafe; | 15 class NonThreadSafe; |
17 | 16 |
18 namespace IPC { | 17 namespace IPC { |
19 | 18 |
20 class Channel::ChannelImpl : public MessageLoopForIO::IOHandler { | 19 class Channel::ChannelImpl : public MessageLoopForIO::IOHandler { |
21 public: | 20 public: |
22 // Mirror methods of Channel, see ipc_channel.h for description. | 21 // Mirror methods of Channel, see ipc_channel.h for description. |
23 ChannelImpl(const std::string& channel_id, Mode mode, Listener* listener); | 22 ChannelImpl(const std::string& channel_id, Mode mode, Listener* listener); |
24 ~ChannelImpl() { Close(); } | 23 ~ChannelImpl() { Close(); } |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 ScopedRunnableMethodFactory<ChannelImpl> factory_; | 76 ScopedRunnableMethodFactory<ChannelImpl> factory_; |
78 | 77 |
79 scoped_ptr<NonThreadSafe> thread_check_; | 78 scoped_ptr<NonThreadSafe> thread_check_; |
80 | 79 |
81 DISALLOW_COPY_AND_ASSIGN(ChannelImpl); | 80 DISALLOW_COPY_AND_ASSIGN(ChannelImpl); |
82 }; | 81 }; |
83 | 82 |
84 } // namespace IPC | 83 } // namespace IPC |
85 | 84 |
86 #endif // IPC_IPC_CHANNEL_WIN_H_ | 85 #endif // IPC_IPC_CHANNEL_WIN_H_ |
OLD | NEW |