| 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" |
| 14 | 15 |
| 15 class NonThreadSafe; | 16 class NonThreadSafe; |
| 16 | 17 |
| 17 namespace IPC { | 18 namespace IPC { |
| 18 | 19 |
| 19 class Channel::ChannelImpl : public MessageLoopForIO::IOHandler { | 20 class Channel::ChannelImpl : public MessageLoopForIO::IOHandler { |
| 20 public: | 21 public: |
| 21 // Mirror methods of Channel, see ipc_channel.h for description. | 22 // Mirror methods of Channel, see ipc_channel.h for description. |
| 22 ChannelImpl(const std::string& channel_id, Mode mode, Listener* listener); | 23 ChannelImpl(const std::string& channel_id, Mode mode, Listener* listener); |
| 23 ~ChannelImpl() { Close(); } | 24 ~ChannelImpl() { Close(); } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 ScopedRunnableMethodFactory<ChannelImpl> factory_; | 77 ScopedRunnableMethodFactory<ChannelImpl> factory_; |
| 77 | 78 |
| 78 scoped_ptr<NonThreadSafe> thread_check_; | 79 scoped_ptr<NonThreadSafe> thread_check_; |
| 79 | 80 |
| 80 DISALLOW_COPY_AND_ASSIGN(ChannelImpl); | 81 DISALLOW_COPY_AND_ASSIGN(ChannelImpl); |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 } // namespace IPC | 84 } // namespace IPC |
| 84 | 85 |
| 85 #endif // IPC_IPC_CHANNEL_WIN_H_ | 86 #endif // IPC_IPC_CHANNEL_WIN_H_ |
| OLD | NEW |