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_session.h" | 5 #include "chrome/test/webdriver/webdriver_session.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 RunSessionTask(base::Bind( | 553 RunSessionTask(base::Bind( |
554 &Automation::MouseDoubleClickDeprecated, | 554 &Automation::MouseDoubleClickDeprecated, |
555 base::Unretained(automation_.get()), | 555 base::Unretained(automation_.get()), |
556 current_target_.view_id, | 556 current_target_.view_id, |
557 mouse_position_, | 557 mouse_position_, |
558 &error)); | 558 &error)); |
559 } | 559 } |
560 return error; | 560 return error; |
561 } | 561 } |
562 | 562 |
563 Error* Session::GetCookies(const std::string& url, base::ListValue** cookies) { | 563 Error* Session::GetCookies(const std::string& url, |
| 564 scoped_ptr<base::ListValue>* cookies) { |
564 Error* error = NULL; | 565 Error* error = NULL; |
565 RunSessionTask(base::Bind( | 566 RunSessionTask(base::Bind( |
566 &Automation::GetCookies, | 567 &Automation::GetCookies, |
567 base::Unretained(automation_.get()), | 568 base::Unretained(automation_.get()), |
568 url, | 569 url, |
569 cookies, | 570 cookies, |
570 &error)); | 571 &error)); |
571 return error; | 572 return error; |
572 } | 573 } |
573 | 574 |
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1937 !iter.IsAtEnd(); iter.Advance()) { | 1938 !iter.IsAtEnd(); iter.Advance()) { |
1938 Error* error = SetPreference(iter.key(), false /* is_user_pref */, | 1939 Error* error = SetPreference(iter.key(), false /* is_user_pref */, |
1939 iter.value().DeepCopy()); | 1940 iter.value().DeepCopy()); |
1940 if (error) | 1941 if (error) |
1941 return error; | 1942 return error; |
1942 } | 1943 } |
1943 return NULL; | 1944 return NULL; |
1944 } | 1945 } |
1945 | 1946 |
1946 } // namespace webdriver | 1947 } // namespace webdriver |
OLD | NEW |