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

Side by Side Diff: mojo/edk/system/core.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
« no previous file with comments | « mojo/edk/system/core.h ('k') | mojo/edk/system/core_test_base.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/core.h" 5 #include "mojo/edk/system/core.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "mojo/edk/embedder/platform_shared_buffer.h" 12 #include "mojo/edk/embedder/platform_shared_buffer.h"
13 #include "mojo/edk/embedder/platform_support.h" 13 #include "mojo/edk/embedder/platform_support.h"
14 #include "mojo/edk/system/async_waiter.h" 14 #include "mojo/edk/system/async_waiter.h"
15 #include "mojo/edk/system/configuration.h" 15 #include "mojo/edk/system/configuration.h"
16 #include "mojo/edk/system/data_pipe.h" 16 #include "mojo/edk/system/data_pipe.h"
17 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h" 17 #include "mojo/edk/system/data_pipe_consumer_dispatcher.h"
18 #include "mojo/edk/system/data_pipe_producer_dispatcher.h" 18 #include "mojo/edk/system/data_pipe_producer_dispatcher.h"
19 #include "mojo/edk/system/dispatcher.h" 19 #include "mojo/edk/system/dispatcher.h"
20 #include "mojo/edk/system/handle_signals_state.h" 20 #include "mojo/edk/system/handle_signals_state.h"
21 #include "mojo/edk/system/memory.h" 21 #include "mojo/edk/system/memory.h"
22 #include "mojo/edk/system/message_pipe.h" 22 #include "mojo/edk/system/message_pipe.h"
23 #include "mojo/edk/system/message_pipe_dispatcher.h" 23 #include "mojo/edk/system/message_pipe_dispatcher.h"
24 #include "mojo/edk/system/shared_buffer_dispatcher.h" 24 #include "mojo/edk/system/shared_buffer_dispatcher.h"
25 #include "mojo/edk/system/waiter.h" 25 #include "mojo/edk/system/waiter.h"
26 #include "mojo/public/c/system/macros.h" 26 #include "mojo/public/c/system/macros.h"
27 #include "mojo/public/cpp/system/macros.h" 27 #include "mojo/public/cpp/system/macros.h"
28 28
29 using mojo::util::RefPtr;
30
29 namespace mojo { 31 namespace mojo {
30 namespace system { 32 namespace system {
31 33
32 // Implementation notes 34 // Implementation notes
33 // 35 //
34 // Mojo primitives are implemented by the singleton |Core| object. Most calls 36 // Mojo primitives are implemented by the singleton |Core| object. Most calls
35 // are for a "primary" handle (the first argument). |Core::GetDispatcher()| is 37 // are for a "primary" handle (the first argument). |Core::GetDispatcher()| is
36 // used to look up a |Dispatcher| object for a given handle. That object 38 // used to look up a |Dispatcher| object for a given handle. That object
37 // implements most primitives for that object. The wait primitives are not 39 // implements most primitives for that object. The wait primitives are not
38 // attached to objects and are implemented by |Core| itself. 40 // attached to objects and are implemented by |Core| itself.
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 if (signals_states) { 601 if (signals_states) {
600 for (; i < num_handles; i++) 602 for (; i < num_handles; i++)
601 signals_states[i] = dispatchers[i]->GetHandleSignalsState(); 603 signals_states[i] = dispatchers[i]->GetHandleSignalsState();
602 } 604 }
603 605
604 return rv; 606 return rv;
605 } 607 }
606 608
607 } // namespace system 609 } // namespace system
608 } // namespace mojo 610 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/core.h ('k') | mojo/edk/system/core_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698