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

Unified Diff: chrome/common/ipc_channel.h

Issue 8156: Switch MessagePumpForIO to use completion ports on Windows.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/message_pump_win.cc ('k') | chrome/common/ipc_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/ipc_channel.h
===================================================================
--- chrome/common/ipc_channel.h (revision 4870)
+++ chrome/common/ipc_channel.h (working copy)
@@ -99,12 +99,14 @@
const std::wstring PipeName(const std::wstring& channel_id) const;
bool CreatePipe(const std::wstring& channel_id, Mode mode);
bool ProcessConnection();
- bool ProcessIncomingMessages(OVERLAPPED* context, DWORD bytes_read);
- bool ProcessOutgoingMessages(OVERLAPPED* context, DWORD bytes_written);
+ bool ProcessIncomingMessages(MessageLoopForIO::IOContext* context,
+ DWORD bytes_read);
+ bool ProcessOutgoingMessages(MessageLoopForIO::IOContext* context,
+ DWORD bytes_written);
// MessageLoop::IOHandler implementation.
- virtual void OnIOCompleted(OVERLAPPED* context, DWORD bytes_transfered,
- DWORD error);
+ virtual void OnIOCompleted(MessageLoopForIO::IOContext* context,
+ DWORD bytes_transfered, DWORD error);
private:
enum {
@@ -112,9 +114,9 @@
};
struct State {
- State();
+ explicit State(Channel* channel);
~State();
- OVERLAPPED overlapped;
+ MessageLoopForIO::IOContext context;
bool is_pending;
};
« no previous file with comments | « base/message_pump_win.cc ('k') | chrome/common/ipc_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698