OLD | NEW |
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 "chrome/browser/devtools/device/android_device_manager.h" | 5 #include "chrome/browser/devtools/device/android_device_manager.h" |
6 | 6 |
| 7 #include <stddef.h> |
7 #include <string.h> | 8 #include <string.h> |
8 | 9 |
9 #include "base/location.h" | 10 #include "base/location.h" |
10 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
11 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
12 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
13 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
14 #include "net/base/io_buffer.h" | 15 #include "net/base/io_buffer.h" |
15 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
16 #include "net/socket/stream_socket.h" | 17 #include "net/socket/stream_socket.h" |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
539 new Device(handler_thread_->message_loop(), it->provider, it->serial); | 540 new Device(handler_thread_->message_loop(), it->provider, it->serial); |
540 } else { | 541 } else { |
541 device = found->second.get(); | 542 device = found->second.get(); |
542 } | 543 } |
543 response.push_back(device); | 544 response.push_back(device); |
544 new_devices[it->serial] = device->weak_factory_.GetWeakPtr(); | 545 new_devices[it->serial] = device->weak_factory_.GetWeakPtr(); |
545 } | 546 } |
546 devices_.swap(new_devices); | 547 devices_.swap(new_devices); |
547 callback.Run(response); | 548 callback.Run(response); |
548 } | 549 } |
OLD | NEW |