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

Side by Side Diff: ipc/ipc_sync_message_filter.h

Issue 7633042: Create ipc.dll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « ipc/ipc_sync_message.h ('k') | no next file » | 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_SYNC_MESSAGE_FILTER_H_ 5 #ifndef IPC_IPC_SYNC_MESSAGE_FILTER_H_
6 #define IPC_IPC_SYNC_MESSAGE_FILTER_H_ 6 #define IPC_IPC_SYNC_MESSAGE_FILTER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 10 matching lines...) Expand all
21 21
22 namespace IPC { 22 namespace IPC {
23 23
24 class MessageReplyDeserializer; 24 class MessageReplyDeserializer;
25 25
26 // This MessageFilter allows sending synchronous IPC messages from a thread 26 // This MessageFilter allows sending synchronous IPC messages from a thread
27 // other than the listener thread associated with the SyncChannel. It does not 27 // other than the listener thread associated with the SyncChannel. It does not
28 // support fancy features that SyncChannel does, such as handling recursion or 28 // support fancy features that SyncChannel does, such as handling recursion or
29 // receiving messages while waiting for a response. Note that this object can 29 // receiving messages while waiting for a response. Note that this object can
30 // be used to send simultaneous synchronous messages from different threads. 30 // be used to send simultaneous synchronous messages from different threads.
31 class SyncMessageFilter : public ChannelProxy::MessageFilter, 31 class IPC_EXPORT SyncMessageFilter : public ChannelProxy::MessageFilter,
32 public Message::Sender { 32 public Message::Sender {
33 public: 33 public:
34 explicit SyncMessageFilter(base::WaitableEvent* shutdown_event); 34 explicit SyncMessageFilter(base::WaitableEvent* shutdown_event);
35 virtual ~SyncMessageFilter(); 35 virtual ~SyncMessageFilter();
36 36
37 // Message::Sender implementation. 37 // Message::Sender implementation.
38 virtual bool Send(Message* message); 38 virtual bool Send(Message* message);
39 39
40 // ChannelProxy::MessageFilter implementation. 40 // ChannelProxy::MessageFilter implementation.
41 virtual void OnFilterAdded(Channel* channel); 41 virtual void OnFilterAdded(Channel* channel);
42 virtual void OnChannelError(); 42 virtual void OnChannelError();
(...skipping 18 matching lines...) Expand all
61 base::Lock lock_; 61 base::Lock lock_;
62 62
63 base::WaitableEvent* shutdown_event_; 63 base::WaitableEvent* shutdown_event_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(SyncMessageFilter); 65 DISALLOW_COPY_AND_ASSIGN(SyncMessageFilter);
66 }; 66 };
67 67
68 } // namespace IPC 68 } // namespace IPC
69 69
70 #endif // IPC_IPC_SYNC_MESSAGE_FILTER_H_ 70 #endif // IPC_IPC_SYNC_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « ipc/ipc_sync_message.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698