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 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> |
(...skipping 18 matching lines...) Expand all Loading... |
29 ChannelWin(const IPC::ChannelHandle &channel_handle, Mode mode, | 29 ChannelWin(const IPC::ChannelHandle &channel_handle, Mode mode, |
30 Listener* listener); | 30 Listener* listener); |
31 ~ChannelWin(); | 31 ~ChannelWin(); |
32 | 32 |
33 // Channel implementation | 33 // Channel implementation |
34 virtual bool Connect() OVERRIDE; | 34 virtual bool Connect() OVERRIDE; |
35 virtual void Close() OVERRIDE; | 35 virtual void Close() OVERRIDE; |
36 virtual bool Send(Message* message) OVERRIDE; | 36 virtual bool Send(Message* message) OVERRIDE; |
37 virtual base::ProcessId GetPeerPID() const OVERRIDE; | 37 virtual base::ProcessId GetPeerPID() const OVERRIDE; |
38 virtual base::ProcessId GetSelfPID() const OVERRIDE; | 38 virtual base::ProcessId GetSelfPID() const OVERRIDE; |
39 virtual ChannelHandle TakePipeHandle() OVERRIDE; | |
40 | 39 |
41 static bool IsNamedServerInitialized(const std::string& channel_id); | 40 static bool IsNamedServerInitialized(const std::string& channel_id); |
42 | 41 |
43 | 42 |
44 private: | 43 private: |
45 // ChannelReader implementation. | 44 // ChannelReader implementation. |
46 virtual ReadState ReadData(char* buffer, | 45 virtual ReadState ReadData(char* buffer, |
47 int buffer_len, | 46 int buffer_len, |
48 int* bytes_read) OVERRIDE; | 47 int* bytes_read) OVERRIDE; |
49 virtual bool WillDispatchInputMessage(Message* msg) OVERRIDE; | 48 virtual bool WillDispatchInputMessage(Message* msg) OVERRIDE; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 116 |
118 scoped_ptr<base::ThreadChecker> thread_check_; | 117 scoped_ptr<base::ThreadChecker> thread_check_; |
119 base::WeakPtrFactory<ChannelWin> weak_factory_; | 118 base::WeakPtrFactory<ChannelWin> weak_factory_; |
120 | 119 |
121 DISALLOW_COPY_AND_ASSIGN(ChannelWin); | 120 DISALLOW_COPY_AND_ASSIGN(ChannelWin); |
122 }; | 121 }; |
123 | 122 |
124 } // namespace IPC | 123 } // namespace IPC |
125 | 124 |
126 #endif // IPC_IPC_CHANNEL_WIN_H_ | 125 #endif // IPC_IPC_CHANNEL_WIN_H_ |
OLD | NEW |