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

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

Issue 1534013003: Fix memory leak in unittests with new Mojo EDK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_DISPATCHER_H_ 5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "mojo/edk/embedder/platform_channel_pair.h" 9 #include "mojo/edk/embedder/platform_channel_pair.h"
10 #include "mojo/edk/system/awakable_list.h" 10 #include "mojo/edk/system/awakable_list.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 // If DispatcherTransport is created. Must be set before lock() is called to 189 // If DispatcherTransport is created. Must be set before lock() is called to
190 // avoid deadlocks with RawChannel calling us. 190 // avoid deadlocks with RawChannel calling us.
191 base::Lock started_transport_; 191 base::Lock started_transport_;
192 192
193 bool serialized_; 193 bool serialized_;
194 bool calling_init_; 194 bool calling_init_;
195 bool write_error_; 195 bool write_error_;
196 // Whether it can be sent after read or write. 196 // Whether it can be sent after read or write.
197 bool transferable_; 197 bool transferable_;
198 // Whether CloseImplNoLock has grabbed an extra reference which needs to be
199 // released.
200 bool release_reference_in_close_;
198 201
199 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher); 202 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher);
200 }; 203 };
201 204
202 } // namespace edk 205 } // namespace edk
203 } // namespace mojo 206 } // namespace mojo
204 207
205 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ 208 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698