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

Side by Side Diff: net/curvecp/curvecp_server_socket.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 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 | « net/cookies/cookie_monster_perftest.cc ('k') | net/curvecp/test_server.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "net/base/ip_endpoint.h" 5 #include "net/base/ip_endpoint.h"
6 #include "net/base/net_errors.h" 6 #include "net/base/net_errors.h"
7 #include "net/curvecp/curvecp_server_socket.h" 7 #include "net/curvecp/curvecp_server_socket.h"
8 #include "net/curvecp/messenger.h" 8 #include "net/curvecp/messenger.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 bool CurveCPServerSocket::SetSendBufferSize(int32 size) { 65 bool CurveCPServerSocket::SetSendBufferSize(int32 size) {
66 return true; 66 return true;
67 } 67 }
68 68
69 void CurveCPServerSocket::OnAccept(ConnectionKey key) { 69 void CurveCPServerSocket::OnAccept(ConnectionKey key) {
70 DCHECK(acceptor_); 70 DCHECK(acceptor_);
71 71
72 CurveCPServerSocket* new_socket = 72 CurveCPServerSocket* new_socket =
73 new CurveCPServerSocket(key, 73 new CurveCPServerSocket(key,
74 packetizer_, 74 packetizer_.get(),
75 net_log_.net_log(), 75 net_log_.net_log(),
76 NetLog::Source()); 76 NetLog::Source());
77 packetizer_->Open(key, new_socket->messenger()); 77 packetizer_->Open(key, new_socket->messenger());
78 acceptor_->OnAccept(new_socket); 78 acceptor_->OnAccept(new_socket);
79 } 79 }
80 80
81 } // namespace net 81 } // namespace net
OLDNEW
« no previous file with comments | « net/cookies/cookie_monster_perftest.cc ('k') | net/curvecp/test_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698