OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "chrome/test/chromedriver/net/adb_client_socket.h" | 5 #include "chrome/test/chromedriver/net/adb_client_socket.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
9 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
10 #include "base/strings/string_split.h" | 12 #include "base/strings/string_split.h" |
11 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
12 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
13 #include "net/base/address_list.h" | 15 #include "net/base/address_list.h" |
14 #include "net/base/completion_callback.h" | 16 #include "net/base/completion_callback.h" |
15 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
16 #include "net/base/net_util.h" | 18 #include "net/base/net_util.h" |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 base::Unretained(this), | 537 base::Unretained(this), |
536 callback, | 538 callback, |
537 new_response, | 539 new_response, |
538 response_buffer, | 540 response_buffer, |
539 bytes_left)); | 541 bytes_left)); |
540 if (result > 0) | 542 if (result > 0) |
541 OnResponseData(callback, new_response, response_buffer, bytes_left, result); | 543 OnResponseData(callback, new_response, response_buffer, bytes_left, result); |
542 else if (result != net::ERR_IO_PENDING) | 544 else if (result != net::ERR_IO_PENDING) |
543 callback.Run(net::OK, new_response); | 545 callback.Run(net::OK, new_response); |
544 } | 546 } |
OLD | NEW |