OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/webdriver/webdriver_dispatch.h" | 5 #include "chrome/test/webdriver/webdriver_dispatch.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/format_macros.h" | 12 #include "base/format_macros.h" |
13 #include "base/json/json_reader.h" | 13 #include "base/json/json_reader.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/message_loop_proxy.h" | 16 #include "base/message_loop_proxy.h" |
17 #include "base/string_split.h" | |
18 #include "base/string_util.h" | 17 #include "base/string_util.h" |
19 #include "base/stringprintf.h" | 18 #include "base/stringprintf.h" |
| 19 #include "base/strings/string_split.h" |
20 #include "base/synchronization/waitable_event.h" | 20 #include "base/synchronization/waitable_event.h" |
21 #include "base/sys_info.h" | 21 #include "base/sys_info.h" |
22 #include "base/threading/platform_thread.h" | 22 #include "base/threading/platform_thread.h" |
23 #include "base/threading/thread.h" | 23 #include "base/threading/thread.h" |
24 #include "chrome/common/chrome_version_info.h" | 24 #include "chrome/common/chrome_version_info.h" |
25 #include "chrome/test/webdriver/commands/command.h" | 25 #include "chrome/test/webdriver/commands/command.h" |
26 #include "chrome/test/webdriver/http_response.h" | 26 #include "chrome/test/webdriver/http_response.h" |
27 #include "chrome/test/webdriver/webdriver_logging.h" | 27 #include "chrome/test/webdriver/webdriver_logging.h" |
28 #include "chrome/test/webdriver/webdriver_session_manager.h" | 28 #include "chrome/test/webdriver/webdriver_session_manager.h" |
29 #include "chrome/test/webdriver/webdriver_switches.h" | 29 #include "chrome/test/webdriver/webdriver_switches.h" |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 ++callback) { | 397 ++callback) { |
398 if (MatchPattern(request_info->uri, callback->uri_regex_)) { | 398 if (MatchPattern(request_info->uri, callback->uri_regex_)) { |
399 callback->func_(connection, request_info, callback->user_data_); | 399 callback->func_(connection, request_info, callback->user_data_); |
400 return true; | 400 return true; |
401 } | 401 } |
402 } | 402 } |
403 return false; | 403 return false; |
404 } | 404 } |
405 | 405 |
406 } // namespace webdriver | 406 } // namespace webdriver |
OLD | NEW |