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

Side by Side Diff: ipc/ipc_sync_channel.h

Issue 6142009: Upating the app, ceee, chrome, ipc, media, and net directories to use the correct lock.h file. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Unified patch updating all references to the new base/synchronization/lock.h Created 9 years, 11 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
« no previous file with comments | « ipc/ipc_channel_proxy.cc ('k') | ipc/ipc_sync_channel.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_SYNC_SENDER_H__ 5 #ifndef IPC_IPC_SYNC_SENDER_H__
6 #define IPC_IPC_SYNC_SENDER_H__ 6 #define IPC_IPC_SYNC_SENDER_H__
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <deque> 10 #include <deque>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/lock.h"
14 #include "base/ref_counted.h" 13 #include "base/ref_counted.h"
14 #include "base/synchronization/lock.h"
15 #include "base/synchronization/waitable_event_watcher.h" 15 #include "base/synchronization/waitable_event_watcher.h"
16 #include "ipc/ipc_channel_handle.h" 16 #include "ipc/ipc_channel_handle.h"
17 #include "ipc/ipc_channel_proxy.h" 17 #include "ipc/ipc_channel_proxy.h"
18 #include "ipc/ipc_sync_message.h" 18 #include "ipc/ipc_sync_message.h"
19 19
20 namespace base { 20 namespace base {
21 class WaitableEvent; 21 class WaitableEvent;
22 }; 22 };
23 23
24 namespace IPC { 24 namespace IPC {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 virtual void OnChannelClosed(); 112 virtual void OnChannelClosed();
113 113
114 // Cancels all pending Send calls. 114 // Cancels all pending Send calls.
115 void CancelPendingSends(); 115 void CancelPendingSends();
116 116
117 // WaitableEventWatcher::Delegate implementation. 117 // WaitableEventWatcher::Delegate implementation.
118 virtual void OnWaitableEventSignaled(base::WaitableEvent* arg); 118 virtual void OnWaitableEventSignaled(base::WaitableEvent* arg);
119 119
120 typedef std::deque<PendingSyncMsg> PendingSyncMessageQueue; 120 typedef std::deque<PendingSyncMsg> PendingSyncMessageQueue;
121 PendingSyncMessageQueue deserializers_; 121 PendingSyncMessageQueue deserializers_;
122 Lock deserializers_lock_; 122 base::Lock deserializers_lock_;
123 123
124 scoped_refptr<ReceivedSyncMsgQueue> received_sync_msgs_; 124 scoped_refptr<ReceivedSyncMsgQueue> received_sync_msgs_;
125 125
126 base::WaitableEvent* shutdown_event_; 126 base::WaitableEvent* shutdown_event_;
127 base::WaitableEventWatcher shutdown_watcher_; 127 base::WaitableEventWatcher shutdown_watcher_;
128 }; 128 };
129 129
130 private: 130 private:
131 // WaitableEventWatcher::Delegate implementation. 131 // WaitableEventWatcher::Delegate implementation.
132 virtual void OnWaitableEventSignaled(base::WaitableEvent* arg); 132 virtual void OnWaitableEventSignaled(base::WaitableEvent* arg);
(...skipping 15 matching lines...) Expand all
148 148
149 // Used to signal events between the IPC and listener threads. 149 // Used to signal events between the IPC and listener threads.
150 base::WaitableEventWatcher dispatch_watcher_; 150 base::WaitableEventWatcher dispatch_watcher_;
151 151
152 DISALLOW_COPY_AND_ASSIGN(SyncChannel); 152 DISALLOW_COPY_AND_ASSIGN(SyncChannel);
153 }; 153 };
154 154
155 } // namespace IPC 155 } // namespace IPC
156 156
157 #endif // IPC_IPC_SYNC_SENDER_H__ 157 #endif // IPC_IPC_SYNC_SENDER_H__
OLDNEW
« no previous file with comments | « ipc/ipc_channel_proxy.cc ('k') | ipc/ipc_sync_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698