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

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

Issue 1426343002: EDK: Move mutex.*, cond_var.*, and thread_annotations.h to //mojo/edk/util. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: oops Created 5 years, 1 month 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/platform_handle_dispatcher.h ('k') | mojo/edk/system/raw_channel.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/edk/system/platform_handle_dispatcher.h" 5 #include "mojo/edk/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
11 using mojo::util::MutexLocker;
11 using mojo::util::RefPtr; 12 using mojo::util::RefPtr;
12 13
13 namespace mojo { 14 namespace mojo {
14 namespace system { 15 namespace system {
15 16
16 namespace { 17 namespace {
17 18
18 const size_t kInvalidPlatformHandleIndex = static_cast<size_t>(-1); 19 const size_t kInvalidPlatformHandleIndex = static_cast<size_t>(-1);
19 20
20 struct SerializedPlatformHandleDispatcher { 21 struct SerializedPlatformHandleDispatcher {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 } else { 110 } else {
110 serialization->platform_handle_index = kInvalidPlatformHandleIndex; 111 serialization->platform_handle_index = kInvalidPlatformHandleIndex;
111 } 112 }
112 113
113 *actual_size = sizeof(SerializedPlatformHandleDispatcher); 114 *actual_size = sizeof(SerializedPlatformHandleDispatcher);
114 return true; 115 return true;
115 } 116 }
116 117
117 } // namespace system 118 } // namespace system
118 } // namespace mojo 119 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/platform_handle_dispatcher.h ('k') | mojo/edk/system/raw_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698