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

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

Issue 68303007: Mojo: More plumbing required to transfer 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.h ('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( 48 virtual MojoResult CanEnqueueMessage(
49 const MessageInTransit* message,
50 const std::vector<Dispatcher*>* dispatchers) OVERRIDE;
51 virtual void EnqueueMessage(
49 MessageInTransit* message, 52 MessageInTransit* message,
50 const std::vector<Dispatcher*>* dispatchers) OVERRIDE; 53 std::vector<scoped_refptr<Dispatcher> >* dispatchers) OVERRIDE;
51 virtual void Attach(scoped_refptr<Channel> channel, 54 virtual void Attach(scoped_refptr<Channel> channel,
52 MessageInTransit::EndpointId local_id) OVERRIDE; 55 MessageInTransit::EndpointId local_id) OVERRIDE;
53 virtual bool Run(MessageInTransit::EndpointId remote_id) OVERRIDE; 56 virtual bool Run(MessageInTransit::EndpointId remote_id) OVERRIDE;
54 57
55 private: 58 private:
56 bool is_attached() const { 59 bool is_attached() const {
57 return !!channel_.get(); 60 return !!channel_.get();
58 } 61 }
59 62
60 bool is_running() const { 63 bool is_running() const {
(...skipping 26 matching lines...) Expand all
87 // not ready to send them yet. 90 // not ready to send them yet.
88 std::deque<MessageInTransit*> paused_message_queue_; 91 std::deque<MessageInTransit*> paused_message_queue_;
89 92
90 DISALLOW_COPY_AND_ASSIGN(ProxyMessagePipeEndpoint); 93 DISALLOW_COPY_AND_ASSIGN(ProxyMessagePipeEndpoint);
91 }; 94 };
92 95
93 } // namespace system 96 } // namespace system
94 } // namespace mojo 97 } // namespace mojo
95 98
96 #endif // MOJO_SYSTEM_PROXY_MESSAGE_PIPE_ENDPOINT_H_ 99 #endif // MOJO_SYSTEM_PROXY_MESSAGE_PIPE_ENDPOINT_H_
OLDNEW
« no previous file with comments | « mojo/system/message_pipe_endpoint.h ('k') | mojo/system/proxy_message_pipe_endpoint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698