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/commands/cookie_commands.h" | 5 #include "chrome/test/webdriver/commands/cookie_commands.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/string_split.h" | |
12 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "base/strings/string_split.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/test/webdriver/commands/response.h" | 14 #include "chrome/test/webdriver/commands/response.h" |
15 #include "chrome/test/webdriver/webdriver_session.h" | 15 #include "chrome/test/webdriver/webdriver_session.h" |
16 | 16 |
17 namespace webdriver { | 17 namespace webdriver { |
18 | 18 |
19 CookieCommand::CookieCommand(const std::vector<std::string>& path_segments, | 19 CookieCommand::CookieCommand(const std::vector<std::string>& path_segments, |
20 const DictionaryValue* const parameters) | 20 const DictionaryValue* const parameters) |
21 : WebDriverCommand(path_segments, parameters) {} | 21 : WebDriverCommand(path_segments, parameters) {} |
22 | 22 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 Error* error = session_->GetURL(&url); | 145 Error* error = session_->GetURL(&url); |
146 if (!error) | 146 if (!error) |
147 error = session_->DeleteCookie(url, cookie_name_); | 147 error = session_->DeleteCookie(url, cookie_name_); |
148 if (error) { | 148 if (error) { |
149 response->SetError(error); | 149 response->SetError(error); |
150 return; | 150 return; |
151 } | 151 } |
152 } | 152 } |
153 | 153 |
154 } // namespace webdriver | 154 } // namespace webdriver |
OLD | NEW |