| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_TEST_WEBDRIVER_DISPATCH_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_DISPATCH_H_ |
| 6 #define CHROME_TEST_WEBDRIVER_DISPATCH_H_ | 6 #define CHROME_TEST_WEBDRIVER_DISPATCH_H_ |
| 7 | 7 |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 14 #include "base/string_split.h" |
| 14 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 15 #include "chrome/test/webdriver/utility_functions.h" | 16 #include "chrome/test/webdriver/utility_functions.h" |
| 16 #include "chrome/test/webdriver/commands/command.h" | 17 #include "chrome/test/webdriver/commands/command.h" |
| 17 | 18 |
| 18 #include "third_party/mongoose/mongoose.h" | 19 #include "third_party/mongoose/mongoose.h" |
| 19 | 20 |
| 20 namespace webdriver { | 21 namespace webdriver { |
| 21 | 22 |
| 22 class Command; | 23 class Command; |
| 23 | 24 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 LOG(INFO) << "Dispatching " << method << " " << uri | 69 LOG(INFO) << "Dispatching " << method << " " << uri |
| 69 << std::string(request_info->post_data, | 70 << std::string(request_info->post_data, |
| 70 request_info->post_data_len) << std::endl; | 71 request_info->post_data_len) << std::endl; |
| 71 scoped_ptr<CommandType> ptr(new CommandType(path_segments, parameters)); | 72 scoped_ptr<CommandType> ptr(new CommandType(path_segments, parameters)); |
| 72 DispatchCommand(ptr.get(), method, &response); | 73 DispatchCommand(ptr.get(), method, &response); |
| 73 SendResponse(connection, request_info, response); | 74 SendResponse(connection, request_info, response); |
| 74 } | 75 } |
| 75 } // namespace webdriver | 76 } // namespace webdriver |
| 76 #endif // CHROME_TEST_WEBDRIVER_DISPATCH_H_ | 77 #endif // CHROME_TEST_WEBDRIVER_DISPATCH_H_ |
| 77 | 78 |
| OLD | NEW |