Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: ipc/ipc_channel_win.h

Issue 382333002: Introduce ChannelMojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 17 matching lines...) Expand all
28 // Mirror methods of Channel, see ipc_channel.h for description. 28 // Mirror methods of Channel, see ipc_channel.h for description.
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;
39 virtual ChannelHandle TakePipeHandle() OVERRIDE;
38 40
39 static bool IsNamedServerInitialized(const std::string& channel_id); 41 static bool IsNamedServerInitialized(const std::string& channel_id);
40 42
41 43
42 private: 44 private:
43 // ChannelReader implementation. 45 // ChannelReader implementation.
44 virtual ReadState ReadData(char* buffer, 46 virtual ReadState ReadData(char* buffer,
45 int buffer_len, 47 int buffer_len,
46 int* bytes_read) OVERRIDE; 48 int* bytes_read) OVERRIDE;
47 virtual bool WillDispatchInputMessage(Message* msg) OVERRIDE; 49 virtual bool WillDispatchInputMessage(Message* msg) OVERRIDE;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 base::WeakPtrFactory<ChannelWin> weak_factory_; 110 base::WeakPtrFactory<ChannelWin> weak_factory_;
109 111
110 scoped_ptr<base::ThreadChecker> thread_check_; 112 scoped_ptr<base::ThreadChecker> thread_check_;
111 113
112 DISALLOW_COPY_AND_ASSIGN(ChannelWin); 114 DISALLOW_COPY_AND_ASSIGN(ChannelWin);
113 }; 115 };
114 116
115 } // namespace IPC 117 } // namespace IPC
116 118
117 #endif // IPC_IPC_CHANNEL_WIN_H_ 119 #endif // IPC_IPC_CHANNEL_WIN_H_
OLDNEW
« ipc/ipc_channel.h ('K') | « ipc/ipc_channel_unittest.cc ('k') | ipc/ipc_channel_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698