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

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

Issue 1483823004: EDK: Move {platform_handle,scoped_platform_handle}.* to //mojo/edk/platform. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 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 #include <utility> 8 #include <utility>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 11
12 using mojo::embedder::ScopedPlatformHandle; 12 using mojo::platform::ScopedPlatformHandle;
13 using mojo::util::MutexLocker; 13 using mojo::util::MutexLocker;
14 using mojo::util::RefPtr; 14 using mojo::util::RefPtr;
15 15
16 namespace mojo { 16 namespace mojo {
17 namespace system { 17 namespace system {
18 18
19 namespace { 19 namespace {
20 20
21 const size_t kInvalidPlatformHandleIndex = static_cast<size_t>(-1); 21 const size_t kInvalidPlatformHandleIndex = static_cast<size_t>(-1);
22 22
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } else { 111 } else {
112 serialization->platform_handle_index = kInvalidPlatformHandleIndex; 112 serialization->platform_handle_index = kInvalidPlatformHandleIndex;
113 } 113 }
114 114
115 *actual_size = sizeof(SerializedPlatformHandleDispatcher); 115 *actual_size = sizeof(SerializedPlatformHandleDispatcher);
116 return true; 116 return true;
117 } 117 }
118 118
119 } // namespace system 119 } // namespace system
120 } // namespace mojo 120 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/platform_handle_dispatcher.h ('k') | mojo/edk/system/platform_handle_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698