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

Side by Side Diff: mojo/system/channel_endpoint.cc

Issue 541243003: More fixes for scoped_refptr operator T* removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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/system/channel_endpoint.h" 5 #include "mojo/system/channel_endpoint.h"
6 6
7 #include "mojo/system/channel.h" 7 #include "mojo/system/channel.h"
8 #include "mojo/system/message_in_transit_queue.h" 8 #include "mojo/system/message_in_transit_queue.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 namespace system { 11 namespace system {
12 12
13 ChannelEndpoint::ChannelEndpoint(MessagePipe* message_pipe, unsigned port) 13 ChannelEndpoint::ChannelEndpoint(const scoped_refptr<MessagePipe>& message_pipe,
14 unsigned port)
14 : state_(STATE_NORMAL), message_pipe_(message_pipe), port_(port) { 15 : state_(STATE_NORMAL), message_pipe_(message_pipe), port_(port) {
15 } 16 }
16 17
17 ChannelEndpoint::~ChannelEndpoint() { 18 ChannelEndpoint::~ChannelEndpoint() {
18 } 19 }
19 20
20 } // namespace system 21 } // namespace system
21 } // namespace mojo 22 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698