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/server/http_handler.h" | 5 #include "chrome/test/chromedriver/server/http_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/json/json_reader.h" | 14 #include "base/json/json_reader.h" |
15 #include "base/json/json_writer.h" | 15 #include "base/json/json_writer.h" |
16 #include "base/logging.h" // For CHECK macros. | 16 #include "base/logging.h" // For CHECK macros. |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/memory/ptr_util.h" | 18 #include "base/memory/ptr_util.h" |
19 #include "base/message_loop/message_loop.h" | 19 #include "base/message_loop/message_loop.h" |
| 20 #include "base/single_thread_task_runner.h" |
20 #include "base/strings/string_split.h" | 21 #include "base/strings/string_split.h" |
21 #include "base/strings/string_util.h" | 22 #include "base/strings/string_util.h" |
22 #include "base/strings/stringprintf.h" | 23 #include "base/strings/stringprintf.h" |
23 #include "base/strings/utf_string_conversions.h" | 24 #include "base/strings/utf_string_conversions.h" |
24 #include "base/sys_info.h" | 25 #include "base/sys_info.h" |
25 #include "base/threading/thread_task_runner_handle.h" | 26 #include "base/threading/thread_task_runner_handle.h" |
26 #include "base/values.h" | 27 #include "base/values.h" |
27 #include "build/build_config.h" | 28 #include "build/build_config.h" |
28 #include "chrome/test/chromedriver/alert_commands.h" | 29 #include "chrome/test/chromedriver/alert_commands.h" |
29 #include "chrome/test/chromedriver/chrome/adb_impl.h" | 30 #include "chrome/test/chromedriver/chrome/adb_impl.h" |
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 params.SetString(name, decoded); | 914 params.SetString(name, decoded); |
914 } else if (command_path_parts[i] != path_parts[i]) { | 915 } else if (command_path_parts[i] != path_parts[i]) { |
915 return false; | 916 return false; |
916 } | 917 } |
917 } | 918 } |
918 out_params->MergeDictionary(¶ms); | 919 out_params->MergeDictionary(¶ms); |
919 return true; | 920 return true; |
920 } | 921 } |
921 | 922 |
922 } // namespace internal | 923 } // namespace internal |
OLD | NEW |