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

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

Issue 670743002: Mojo: Fixes to current virtual/override style in mojo/edk/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/edk/system/core_test_base.h ('k') | mojo/edk/system/message_pipe_test_utils.h » ('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_EDK_SYSTEM_MESSAGE_PIPE_H_ 5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_
6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_ 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 private: 98 private:
99 MessagePipe(); 99 MessagePipe();
100 100
101 friend class base::RefCountedThreadSafe<MessagePipe>; 101 friend class base::RefCountedThreadSafe<MessagePipe>;
102 virtual ~MessagePipe(); 102 ~MessagePipe();
103 103
104 // This is used internally by |WriteMessage()| and by |EnqueueMessage()|. 104 // This is used internally by |WriteMessage()| and by |EnqueueMessage()|.
105 // |transports| may be non-null only if it's nonempty and |message| has no 105 // |transports| may be non-null only if it's nonempty and |message| has no
106 // dispatchers attached. 106 // dispatchers attached.
107 MojoResult EnqueueMessageInternal( 107 MojoResult EnqueueMessageInternal(
108 unsigned port, 108 unsigned port,
109 scoped_ptr<MessageInTransit> message, 109 scoped_ptr<MessageInTransit> message,
110 std::vector<DispatcherTransport>* transports); 110 std::vector<DispatcherTransport>* transports);
111 111
112 // Helper for |EnqueueMessageInternal()|. Must be called with |lock_| held. 112 // Helper for |EnqueueMessageInternal()|. Must be called with |lock_| held.
(...skipping 10 matching lines...) Expand all
123 base::Lock lock_; // Protects the following members. 123 base::Lock lock_; // Protects the following members.
124 scoped_ptr<MessagePipeEndpoint> endpoints_[2]; 124 scoped_ptr<MessagePipeEndpoint> endpoints_[2];
125 125
126 DISALLOW_COPY_AND_ASSIGN(MessagePipe); 126 DISALLOW_COPY_AND_ASSIGN(MessagePipe);
127 }; 127 };
128 128
129 } // namespace system 129 } // namespace system
130 } // namespace mojo 130 } // namespace mojo
131 131
132 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_ 132 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/core_test_base.h ('k') | mojo/edk/system/message_pipe_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698