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

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

Issue 604443002: Mojo: Remove ProxyMessagePipeEndpoint::OnRemove(), etc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@del_pmpe_run-x-del_mp_attach-x-move_paused_message_queue-x-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 | « no previous file | 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_MESSAGE_PIPE_H_ 5 #ifndef MOJO_SYSTEM_MESSAGE_PIPE_H_
6 #define MOJO_SYSTEM_MESSAGE_PIPE_H_ 6 #define MOJO_SYSTEM_MESSAGE_PIPE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // This is called by the dispatcher to convert a local endpoint to a proxy 88 // This is called by the dispatcher to convert a local endpoint to a proxy
89 // endpoint. 89 // endpoint.
90 scoped_refptr<ChannelEndpoint> ConvertLocalToProxy(unsigned port); 90 scoped_refptr<ChannelEndpoint> ConvertLocalToProxy(unsigned port);
91 91
92 // This is used by |Channel| to enqueue messages (typically to a 92 // This is used by |Channel| to enqueue messages (typically to a
93 // |LocalMessagePipeEndpoint|). Unlike |WriteMessage()|, |port| is the 93 // |LocalMessagePipeEndpoint|). Unlike |WriteMessage()|, |port| is the
94 // *destination* port. 94 // *destination* port.
95 MojoResult EnqueueMessage(unsigned port, 95 MojoResult EnqueueMessage(unsigned port,
96 scoped_ptr<MessageInTransit> message); 96 scoped_ptr<MessageInTransit> message);
97 97
98 // This is used by |Channel|. TODO(vtl): Remove it. 98 // This is used by |Channel|. TODO(vtl): Rename it (and have the
99 // |ChannelEndpoint| call it instead).
99 void OnRemove(unsigned port); 100 void OnRemove(unsigned port);
100 101
101 private: 102 private:
102 MessagePipe(); 103 MessagePipe();
103 104
104 friend class base::RefCountedThreadSafe<MessagePipe>; 105 friend class base::RefCountedThreadSafe<MessagePipe>;
105 virtual ~MessagePipe(); 106 virtual ~MessagePipe();
106 107
107 // This is used internally by |WriteMessage()| and by |EnqueueMessage()|. 108 // This is used internally by |WriteMessage()| and by |EnqueueMessage()|.
108 // |transports| may be non-null only if it's nonempty and |message| has no 109 // |transports| may be non-null only if it's nonempty and |message| has no
(...skipping 17 matching lines...) Expand all
126 base::Lock lock_; // Protects the following members. 127 base::Lock lock_; // Protects the following members.
127 scoped_ptr<MessagePipeEndpoint> endpoints_[2]; 128 scoped_ptr<MessagePipeEndpoint> endpoints_[2];
128 129
129 DISALLOW_COPY_AND_ASSIGN(MessagePipe); 130 DISALLOW_COPY_AND_ASSIGN(MessagePipe);
130 }; 131 };
131 132
132 } // namespace system 133 } // namespace system
133 } // namespace mojo 134 } // namespace mojo
134 135
135 #endif // MOJO_SYSTEM_MESSAGE_PIPE_H_ 136 #endif // MOJO_SYSTEM_MESSAGE_PIPE_H_
OLDNEW
« no previous file with comments | « no previous file | mojo/system/message_pipe.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698