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

Side by Side Diff: mojo/system/platform_handle_dispatcher.cc

Issue 325213004: Mojo: Wrap the satisfied/unsatisfied wait flags state in a single object. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « mojo/system/platform_handle_dispatcher.h ('k') | mojo/system/shared_buffer_dispatcher.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 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/platform_handle_dispatcher.h" 5 #include "mojo/system/platform_handle_dispatcher.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 10
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 serialization->platform_handle_index = platform_handles->size(); 107 serialization->platform_handle_index = platform_handles->size();
108 platform_handles->push_back(platform_handle_.release()); 108 platform_handles->push_back(platform_handle_.release());
109 } else { 109 } else {
110 serialization->platform_handle_index = kInvalidPlatformHandleIndex; 110 serialization->platform_handle_index = kInvalidPlatformHandleIndex;
111 } 111 }
112 112
113 *actual_size = sizeof(SerializedPlatformHandleDispatcher); 113 *actual_size = sizeof(SerializedPlatformHandleDispatcher);
114 return true; 114 return true;
115 } 115 }
116 116
117 MojoWaitFlags PlatformHandleDispatcher::SatisfiedFlagsNoLock() const { 117 WaitFlagsState PlatformHandleDispatcher::GetWaitFlagsStateNoLock() const {
118 return MOJO_WAIT_FLAG_NONE; 118 return WaitFlagsState();
119 }
120
121 MojoWaitFlags PlatformHandleDispatcher::SatisfiableFlagsNoLock() const {
122 return MOJO_WAIT_FLAG_NONE;
123 } 119 }
124 120
125 } // namespace system 121 } // namespace system
126 } // namespace mojo 122 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/system/platform_handle_dispatcher.h ('k') | mojo/system/shared_buffer_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698