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

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

Issue 348803003: Refactor tcp socket and unix domain socket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert the behavior change of calling RecordFastOpenStatus() Created 6 years, 5 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
« no previous file with comments | « no previous file | extensions/browser/api/socket/tcp_socket.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 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 <queue> 7 #include <queue>
8 #include <string> 8 #include <string>
9 9
10 #include "base/location.h"
keybuk 2014/07/08 22:06:26 what from this header is used by this source file?
mmenke 2014/07/08 22:25:08 FROM_HERE
10 #include "base/logging.h" 11 #include "base/logging.h"
11 #include "base/memory/linked_ptr.h" 12 #include "base/memory/linked_ptr.h"
12 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
14 #include "base/sequenced_task_runner.h" 15 #include "base/sequenced_task_runner.h"
15 #include "base/threading/thread_restrictions.h" 16 #include "base/threading/thread_restrictions.h"
16 #include "device/bluetooth/bluetooth_socket.h" 17 #include "device/bluetooth/bluetooth_socket.h"
17 #include "device/bluetooth/bluetooth_socket_thread.h" 18 #include "device/bluetooth/bluetooth_socket_thread.h"
18 #include "net/base/io_buffer.h" 19 #include "net/base/io_buffer.h"
19 #include "net/base/net_errors.h" 20 #include "net/base/net_errors.h"
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 base::Bind(callback, reason, error_message)); 304 base::Bind(callback, reason, error_message));
304 } 305 }
305 306
306 void BluetoothSocketNet::PostSendCompletion( 307 void BluetoothSocketNet::PostSendCompletion(
307 const SendCompletionCallback& callback, 308 const SendCompletionCallback& callback,
308 int bytes_written) { 309 int bytes_written) {
309 ui_task_runner_->PostTask(FROM_HERE, base::Bind(callback, bytes_written)); 310 ui_task_runner_->PostTask(FROM_HERE, base::Bind(callback, bytes_written));
310 } 311 }
311 312
312 } // namespace device 313 } // namespace device
OLDNEW
« no previous file with comments | « no previous file | extensions/browser/api/socket/tcp_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698