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

Side by Side Diff: ipc/ipc_channel_win.h

Issue 8539036: base:Bind: Convert ipc/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ipc/ipc_channel_proxy.cc ('k') | ipc/ipc_channel_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h"
15 #include "base/message_loop.h" 16 #include "base/message_loop.h"
16 17
17 namespace base { 18 namespace base {
18 class NonThreadSafe; 19 class NonThreadSafe;
19 } 20 }
20 21
21 namespace IPC { 22 namespace IPC {
22 23
23 class Channel::ChannelImpl : public MessageLoopForIO::IOHandler { 24 class Channel::ChannelImpl : public MessageLoopForIO::IOHandler {
24 public: 25 public:
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // In server-mode, we have to wait for the client to connect before we 73 // In server-mode, we have to wait for the client to connect before we
73 // can begin reading. We make use of the input_state_ when performing 74 // can begin reading. We make use of the input_state_ when performing
74 // the connect operation in overlapped mode. 75 // the connect operation in overlapped mode.
75 bool waiting_connect_; 76 bool waiting_connect_;
76 77
77 // This flag is set when processing incoming messages. It is used to 78 // This flag is set when processing incoming messages. It is used to
78 // avoid recursing through ProcessIncomingMessages, which could cause 79 // avoid recursing through ProcessIncomingMessages, which could cause
79 // problems. TODO(darin): make this unnecessary 80 // problems. TODO(darin): make this unnecessary
80 bool processing_incoming_; 81 bool processing_incoming_;
81 82
82 ScopedRunnableMethodFactory<ChannelImpl> factory_; 83 base::WeakPtrFactory<ChannelImpl> weak_factory_;
83 84
84 scoped_ptr<base::NonThreadSafe> thread_check_; 85 scoped_ptr<base::NonThreadSafe> thread_check_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(ChannelImpl); 87 DISALLOW_COPY_AND_ASSIGN(ChannelImpl);
87 }; 88 };
88 89
89 } // namespace IPC 90 } // namespace IPC
90 91
91 #endif // IPC_IPC_CHANNEL_WIN_H_ 92 #endif // IPC_IPC_CHANNEL_WIN_H_
OLDNEW
« no previous file with comments | « ipc/ipc_channel_proxy.cc ('k') | ipc/ipc_channel_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698