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/browser/devtools/devtools_adb_bridge.h" | 5 #include "chrome/browser/devtools/devtools_adb_bridge.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/json/json_reader.h" | 12 #include "base/json/json_reader.h" |
13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/message_loop/message_loop_proxy.h" | 15 #include "base/message_loop/message_loop_proxy.h" |
16 #include "base/rand_util.h" | 16 #include "base/rand_util.h" |
17 #include "base/string_util.h" | |
18 #include "base/stringprintf.h" | |
19 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
| 18 #include "base/strings/string_util.h" |
| 19 #include "base/strings/stringprintf.h" |
20 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
21 #include "base/values.h" | 21 #include "base/values.h" |
22 #include "chrome/browser/devtools/adb_client_socket.h" | 22 #include "chrome/browser/devtools/adb_client_socket.h" |
23 #include "chrome/browser/devtools/devtools_window.h" | 23 #include "chrome/browser/devtools/devtools_window.h" |
24 #include "chrome/browser/devtools/tethering_adb_filter.h" | 24 #include "chrome/browser/devtools/tethering_adb_filter.h" |
25 #include "chrome/browser/profiles/profile.h" | 25 #include "chrome/browser/profiles/profile.h" |
26 #include "content/public/browser/browser_thread.h" | 26 #include "content/public/browser/browser_thread.h" |
27 #include "content/public/browser/devtools_agent_host.h" | 27 #include "content/public/browser/devtools_agent_host.h" |
28 #include "content/public/browser/devtools_client_host.h" | 28 #include "content/public/browser/devtools_client_host.h" |
29 #include "content/public/browser/devtools_external_agent_proxy.h" | 29 #include "content/public/browser/devtools_external_agent_proxy.h" |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 if (!has_message_loop_) | 653 if (!has_message_loop_) |
654 return; | 654 return; |
655 | 655 |
656 scoped_refptr<AdbAttachCommand> command( | 656 scoped_refptr<AdbAttachCommand> command( |
657 new AdbAttachCommand(weak_factory_.GetWeakPtr(), serial, socket, | 657 new AdbAttachCommand(weak_factory_.GetWeakPtr(), serial, socket, |
658 debug_url, frontend_url)); | 658 debug_url, frontend_url)); |
659 adb_thread_->message_loop()->PostTask( | 659 adb_thread_->message_loop()->PostTask( |
660 FROM_HERE, | 660 FROM_HERE, |
661 base::Bind(&AdbAttachCommand::Run, command)); | 661 base::Bind(&AdbAttachCommand::Run, command)); |
662 } | 662 } |
OLD | NEW |