| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ipc/ipc_channel.h" | 9 #include "ipc/ipc_channel.h" |
| 10 | 10 |
| 11 #include <queue> | 11 #include <queue> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
| 15 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
| 16 | 16 #include "base/threading/non_thread_safe.h" |
| 17 namespace base { | |
| 18 class NonThreadSafe; | |
| 19 } | |
| 20 | 17 |
| 21 namespace IPC { | 18 namespace IPC { |
| 22 | 19 |
| 23 class Channel::ChannelImpl : public MessageLoopForIO::IOHandler { | 20 class Channel::ChannelImpl : public MessageLoopForIO::IOHandler { |
| 24 public: | 21 public: |
| 25 // Mirror methods of Channel, see ipc_channel.h for description. | 22 // Mirror methods of Channel, see ipc_channel.h for description. |
| 26 ChannelImpl(const IPC::ChannelHandle &channel_handle, Mode mode, | 23 ChannelImpl(const IPC::ChannelHandle &channel_handle, Mode mode, |
| 27 Listener* listener); | 24 Listener* listener); |
| 28 ~ChannelImpl(); | 25 ~ChannelImpl(); |
| 29 bool Connect(); | 26 bool Connect(); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 ScopedRunnableMethodFactory<ChannelImpl> factory_; | 78 ScopedRunnableMethodFactory<ChannelImpl> factory_; |
| 82 | 79 |
| 83 scoped_ptr<base::NonThreadSafe> thread_check_; | 80 scoped_ptr<base::NonThreadSafe> thread_check_; |
| 84 | 81 |
| 85 DISALLOW_COPY_AND_ASSIGN(ChannelImpl); | 82 DISALLOW_COPY_AND_ASSIGN(ChannelImpl); |
| 86 }; | 83 }; |
| 87 | 84 |
| 88 } // namespace IPC | 85 } // namespace IPC |
| 89 | 86 |
| 90 #endif // IPC_IPC_CHANNEL_WIN_H_ | 87 #endif // IPC_IPC_CHANNEL_WIN_H_ |
| OLD | NEW |