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

Side by Side Diff: mojo/edk/system/incoming_endpoint.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/incoming_endpoint.h ('k') | mojo/edk/system/ipc_support.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/incoming_endpoint.h" 5 #include "mojo/edk/system/incoming_endpoint.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "mojo/edk/system/channel_endpoint.h" 10 #include "mojo/edk/system/channel_endpoint.h"
11 #include "mojo/edk/system/data_pipe.h" 11 #include "mojo/edk/system/data_pipe.h"
12 #include "mojo/edk/system/message_in_transit.h" 12 #include "mojo/edk/system/message_in_transit.h"
13 #include "mojo/edk/system/message_pipe.h" 13 #include "mojo/edk/system/message_pipe.h"
14 #include "mojo/edk/system/remote_producer_data_pipe_impl.h" 14 #include "mojo/edk/system/remote_producer_data_pipe_impl.h"
15 15
16 using mojo::util::MakeRefCounted;
17 using mojo::util::RefPtr;
18
16 namespace mojo { 19 namespace mojo {
17 namespace system { 20 namespace system {
18 21
19 RefPtr<ChannelEndpoint> IncomingEndpoint::Init() { 22 RefPtr<ChannelEndpoint> IncomingEndpoint::Init() {
20 endpoint_ = 23 endpoint_ =
21 MakeRefCounted<ChannelEndpoint>(RefPtr<IncomingEndpoint>(this), 0); 24 MakeRefCounted<ChannelEndpoint>(RefPtr<IncomingEndpoint>(this), 0);
22 return endpoint_; 25 return endpoint_;
23 } 26 }
24 27
25 RefPtr<MessagePipe> IncomingEndpoint::ConvertToMessagePipe() { 28 RefPtr<MessagePipe> IncomingEndpoint::ConvertToMessagePipe() {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void IncomingEndpoint::OnDetachFromChannel(unsigned /*port*/) { 74 void IncomingEndpoint::OnDetachFromChannel(unsigned /*port*/) {
72 Close(); 75 Close();
73 } 76 }
74 77
75 IncomingEndpoint::IncomingEndpoint() {} 78 IncomingEndpoint::IncomingEndpoint() {}
76 79
77 IncomingEndpoint::~IncomingEndpoint() {} 80 IncomingEndpoint::~IncomingEndpoint() {}
78 81
79 } // namespace system 82 } // namespace system
80 } // namespace mojo 83 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/incoming_endpoint.h ('k') | mojo/edk/system/ipc_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698