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

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

Issue 1423713009: EDK: Move ref counting classes to mojo/edk/util. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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
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/shared_buffer_dispatcher.h" 5 #include "mojo/edk/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 "mojo/edk/embedder/platform_support.h" 10 #include "mojo/edk/embedder/platform_support.h"
11 #include "mojo/edk/system/channel.h" 11 #include "mojo/edk/system/channel.h"
12 #include "mojo/edk/system/configuration.h" 12 #include "mojo/edk/system/configuration.h"
13 #include "mojo/edk/system/memory.h" 13 #include "mojo/edk/system/memory.h"
14 #include "mojo/edk/system/options_validation.h" 14 #include "mojo/edk/system/options_validation.h"
15 #include "mojo/public/c/system/macros.h" 15 #include "mojo/public/c/system/macros.h"
16 16
17 using mojo::util::RefPtr;
18
17 namespace mojo { 19 namespace mojo {
18 namespace system { 20 namespace system {
19 21
20 namespace { 22 namespace {
21 23
22 struct MOJO_ALIGNAS(8) SerializedSharedBufferDispatcher { 24 struct MOJO_ALIGNAS(8) SerializedSharedBufferDispatcher {
23 uint64_t num_bytes; 25 uint64_t num_bytes;
24 uint32_t platform_handle_index; 26 uint32_t platform_handle_index;
25 }; 27 };
26 28
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 platform_handles->push_back(platform_handle.release()); 288 platform_handles->push_back(platform_handle.release());
287 *actual_size = sizeof(SerializedSharedBufferDispatcher); 289 *actual_size = sizeof(SerializedSharedBufferDispatcher);
288 290
289 shared_buffer_ = nullptr; 291 shared_buffer_ = nullptr;
290 292
291 return true; 293 return true;
292 } 294 }
293 295
294 } // namespace system 296 } // namespace system
295 } // namespace mojo 297 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/shared_buffer_dispatcher.h ('k') | mojo/edk/system/shared_buffer_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698