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

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

Issue 68993005: Mojo: More plumbing to support sending handles over MessagePipes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « mojo/system/message_pipe_endpoint.cc ('k') | mojo/system/proxy_message_pipe_endpoint.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_PROXY_MESSAGE_PIPE_ENDPOINT_H_ 5 #ifndef MOJO_SYSTEM_PROXY_MESSAGE_PIPE_ENDPOINT_H_
6 #define MOJO_SYSTEM_PROXY_MESSAGE_PIPE_ENDPOINT_H_ 6 #define MOJO_SYSTEM_PROXY_MESSAGE_PIPE_ENDPOINT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 27 matching lines...) Expand all
38 // - When attached, a |ProxyMessagePipeEndpoint| starts out not running. When 38 // - When attached, a |ProxyMessagePipeEndpoint| starts out not running. When
39 // run, it gets a remote ID. 39 // run, it gets a remote ID.
40 class MOJO_SYSTEM_EXPORT ProxyMessagePipeEndpoint : public MessagePipeEndpoint { 40 class MOJO_SYSTEM_EXPORT ProxyMessagePipeEndpoint : public MessagePipeEndpoint {
41 public: 41 public:
42 ProxyMessagePipeEndpoint(); 42 ProxyMessagePipeEndpoint();
43 virtual ~ProxyMessagePipeEndpoint(); 43 virtual ~ProxyMessagePipeEndpoint();
44 44
45 // |MessagePipeEndpoint| implementation: 45 // |MessagePipeEndpoint| implementation:
46 virtual void Close() OVERRIDE; 46 virtual void Close() OVERRIDE;
47 virtual bool OnPeerClose() OVERRIDE; 47 virtual bool OnPeerClose() OVERRIDE;
48 virtual MojoResult EnqueueMessage(MessageInTransit* message) OVERRIDE; 48 virtual MojoResult EnqueueMessage(
49 MessageInTransit* message,
50 const std::vector<Dispatcher*>* dispatchers) OVERRIDE;
49 virtual void Attach(scoped_refptr<Channel> channel, 51 virtual void Attach(scoped_refptr<Channel> channel,
50 MessageInTransit::EndpointId local_id) OVERRIDE; 52 MessageInTransit::EndpointId local_id) OVERRIDE;
51 virtual bool Run(MessageInTransit::EndpointId remote_id) OVERRIDE; 53 virtual bool Run(MessageInTransit::EndpointId remote_id) OVERRIDE;
52 54
53 private: 55 private:
54 bool is_attached() const { 56 bool is_attached() const {
55 return !!channel_.get(); 57 return !!channel_.get();
56 } 58 }
57 59
58 bool is_running() const { 60 bool is_running() const {
(...skipping 26 matching lines...) Expand all
85 // not ready to send them yet. 87 // not ready to send them yet.
86 std::deque<MessageInTransit*> paused_message_queue_; 88 std::deque<MessageInTransit*> paused_message_queue_;
87 89
88 DISALLOW_COPY_AND_ASSIGN(ProxyMessagePipeEndpoint); 90 DISALLOW_COPY_AND_ASSIGN(ProxyMessagePipeEndpoint);
89 }; 91 };
90 92
91 } // namespace system 93 } // namespace system
92 } // namespace mojo 94 } // namespace mojo
93 95
94 #endif // MOJO_SYSTEM_PROXY_MESSAGE_PIPE_ENDPOINT_H_ 96 #endif // MOJO_SYSTEM_PROXY_MESSAGE_PIPE_ENDPOINT_H_
OLDNEW
« no previous file with comments | « mojo/system/message_pipe_endpoint.cc ('k') | mojo/system/proxy_message_pipe_endpoint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698