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

Side by Side Diff: mojo/system/local_message_pipe_endpoint.h

Issue 587153003: Mojo: Move the paused message queue from ProxyMessagePipeEndpoint to ChannelEndpoint. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@del_pmpe_attach
Patch Set: rebased Created 6 years, 2 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
« no previous file with comments | « mojo/system/channel_endpoint.cc ('k') | mojo/system/message_pipe.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 MOJO_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_ 5 #ifndef MOJO_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_
6 #define MOJO_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_ 6 #define MOJO_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "mojo/system/handle_signals_state.h" 10 #include "mojo/system/handle_signals_state.h"
(...skipping 26 matching lines...) Expand all
37 uint32_t* num_dispatchers, 37 uint32_t* num_dispatchers,
38 MojoReadMessageFlags flags) OVERRIDE; 38 MojoReadMessageFlags flags) OVERRIDE;
39 virtual HandleSignalsState GetHandleSignalsState() const OVERRIDE; 39 virtual HandleSignalsState GetHandleSignalsState() const OVERRIDE;
40 virtual MojoResult AddWaiter(Waiter* waiter, 40 virtual MojoResult AddWaiter(Waiter* waiter,
41 MojoHandleSignals signals, 41 MojoHandleSignals signals,
42 uint32_t context, 42 uint32_t context,
43 HandleSignalsState* signals_state) OVERRIDE; 43 HandleSignalsState* signals_state) OVERRIDE;
44 virtual void RemoveWaiter(Waiter* waiter, 44 virtual void RemoveWaiter(Waiter* waiter,
45 HandleSignalsState* signals_state) OVERRIDE; 45 HandleSignalsState* signals_state) OVERRIDE;
46 46
47 // This is only to be used by |ProxyMessagePipeEndpoint|: 47 // This is only to be used by |MessagePipe|:
48 MessageInTransitQueue* message_queue() { return &message_queue_; } 48 MessageInTransitQueue* message_queue() { return &message_queue_; }
49 49
50 private: 50 private:
51 bool is_open_; 51 bool is_open_;
52 bool is_peer_open_; 52 bool is_peer_open_;
53 53
54 // Queue of incoming messages. 54 // Queue of incoming messages.
55 MessageInTransitQueue message_queue_; 55 MessageInTransitQueue message_queue_;
56 WaiterList waiter_list_; 56 WaiterList waiter_list_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(LocalMessagePipeEndpoint); 58 DISALLOW_COPY_AND_ASSIGN(LocalMessagePipeEndpoint);
59 }; 59 };
60 60
61 } // namespace system 61 } // namespace system
62 } // namespace mojo 62 } // namespace mojo
63 63
64 #endif // MOJO_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_ 64 #endif // MOJO_SYSTEM_LOCAL_MESSAGE_PIPE_ENDPOINT_H_
OLDNEW
« no previous file with comments | « mojo/system/channel_endpoint.cc ('k') | mojo/system/message_pipe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698