| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "mojo/system/shared_buffer_dispatcher.h" | 5 #include "mojo/system/shared_buffer_dispatcher.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 serialization->num_bytes = shared_buffer_->num_bytes(); | 256 serialization->num_bytes = shared_buffer_->num_bytes(); |
| 257 serialization->platform_handle_index = platform_handles->size(); | 257 serialization->platform_handle_index = platform_handles->size(); |
| 258 platform_handles->push_back(platform_handle.release()); | 258 platform_handles->push_back(platform_handle.release()); |
| 259 *actual_size = sizeof(SerializedSharedBufferDispatcher); | 259 *actual_size = sizeof(SerializedSharedBufferDispatcher); |
| 260 | 260 |
| 261 shared_buffer_ = NULL; | 261 shared_buffer_ = NULL; |
| 262 | 262 |
| 263 return true; | 263 return true; |
| 264 } | 264 } |
| 265 | 265 |
| 266 MojoWaitFlags SharedBufferDispatcher::SatisfiedFlagsNoLock() const { | 266 WaitFlagsState SharedBufferDispatcher::GetWaitFlagsStateNoLock() const { |
| 267 // TODO(vtl): Add transferrable flag. | 267 // TODO(vtl): Add transferrable flag. |
| 268 return MOJO_WAIT_FLAG_NONE; | 268 return WaitFlagsState(); |
| 269 } | |
| 270 | |
| 271 MojoWaitFlags SharedBufferDispatcher::SatisfiableFlagsNoLock() const { | |
| 272 // TODO(vtl): Add transferrable flag. | |
| 273 return MOJO_WAIT_FLAG_NONE; | |
| 274 } | 269 } |
| 275 | 270 |
| 276 } // namespace system | 271 } // namespace system |
| 277 } // namespace mojo | 272 } // namespace mojo |
| OLD | NEW |