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

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: Renamed ChanelBuilder to ChannelFactory Created 6 years, 5 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 base::WeakPtrFactory<ChannelWin> weak_factory_; 107 base::WeakPtrFactory<ChannelWin> weak_factory_;
106 108
107 scoped_ptr<base::ThreadChecker> thread_check_; 109 scoped_ptr<base::ThreadChecker> thread_check_;
108 110
109 DISALLOW_COPY_AND_ASSIGN(ChannelWin); 111 DISALLOW_COPY_AND_ASSIGN(ChannelWin);
110 }; 112 };
111 113
112 } // namespace IPC 114 } // namespace IPC
113 115
114 #endif // IPC_IPC_CHANNEL_WIN_H_ 116 #endif // IPC_IPC_CHANNEL_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698