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

Side by Side Diff: device/bluetooth/bluetooth_socket_net.cc

Issue 1376473003: Notify NQE of TCP RTT values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reorder initialization in constructor Created 4 years, 8 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 "device/bluetooth/bluetooth_socket_net.h" 5 #include "device/bluetooth/bluetooth_socket_net.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 success_callback), 110 success_callback),
111 base::Bind(&BluetoothSocketNet::PostErrorCompletion, 111 base::Bind(&BluetoothSocketNet::PostErrorCompletion,
112 this, 112 this,
113 error_callback))); 113 error_callback)));
114 } 114 }
115 115
116 void BluetoothSocketNet::ResetData() { 116 void BluetoothSocketNet::ResetData() {
117 } 117 }
118 118
119 void BluetoothSocketNet::ResetTCPSocket() { 119 void BluetoothSocketNet::ResetTCPSocket() {
120 tcp_socket_.reset(new net::TCPSocket(NULL, net::NetLog::Source())); 120 tcp_socket_.reset(new net::TCPSocket(NULL, NULL, net::NetLog::Source()));
121 } 121 }
122 122
123 void BluetoothSocketNet::SetTCPSocket( 123 void BluetoothSocketNet::SetTCPSocket(
124 std::unique_ptr<net::TCPSocket> tcp_socket) { 124 std::unique_ptr<net::TCPSocket> tcp_socket) {
125 tcp_socket_ = std::move(tcp_socket); 125 tcp_socket_ = std::move(tcp_socket);
126 } 126 }
127 127
128 void BluetoothSocketNet::PostSuccess(const base::Closure& callback) { 128 void BluetoothSocketNet::PostSuccess(const base::Closure& callback) {
129 ui_task_runner_->PostTask(FROM_HERE, callback); 129 ui_task_runner_->PostTask(FROM_HERE, callback);
130 } 130 }
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 base::Bind(callback, reason, error_message)); 303 base::Bind(callback, reason, error_message));
304 } 304 }
305 305
306 void BluetoothSocketNet::PostSendCompletion( 306 void BluetoothSocketNet::PostSendCompletion(
307 const SendCompletionCallback& callback, 307 const SendCompletionCallback& callback,
308 int bytes_written) { 308 int bytes_written) {
309 ui_task_runner_->PostTask(FROM_HERE, base::Bind(callback, bytes_written)); 309 ui_task_runner_->PostTask(FROM_HERE, base::Bind(callback, bytes_written));
310 } 310 }
311 311
312 } // namespace device 312 } // namespace device
OLDNEW
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_tcp_socket_message_filter.cc ('k') | device/bluetooth/bluetooth_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698