Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Side by Side Diff: chrome/test/webdriver/commands/url_command.cc

Issue 10834004: Correct const accessors in base/values.(h|cc) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: One more, Windows-only Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/url_command.h" 5 #include "chrome/test/webdriver/commands/url_command.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "chrome/test/webdriver/commands/response.h" 9 #include "chrome/test/webdriver/commands/response.h"
10 #include "chrome/test/webdriver/webdriver_error.h" 10 #include "chrome/test/webdriver/webdriver_error.h"
11 #include "chrome/test/webdriver/webdriver_session.h" 11 #include "chrome/test/webdriver/webdriver_session.h"
12 12
13 namespace webdriver { 13 namespace webdriver {
14 14
15 URLCommand::URLCommand(const std::vector<std::string>& path_segments, 15 URLCommand::URLCommand(const std::vector<std::string>& path_segments,
16 const DictionaryValue* const parameters) 16 DictionaryValue* const parameters)
17 : WebDriverCommand(path_segments, parameters) {} 17 : WebDriverCommand(path_segments, parameters) {}
18 18
19 URLCommand::~URLCommand() {} 19 URLCommand::~URLCommand() {}
20 20
21 bool URLCommand::DoesGet() { 21 bool URLCommand::DoesGet() {
22 return true; 22 return true;
23 } 23 }
24 24
25 bool URLCommand::DoesPost() { 25 bool URLCommand::DoesPost() {
26 return true; 26 return true;
(...skipping 19 matching lines...) Expand all
46 46
47 Error* error = session_->NavigateToURL(url); 47 Error* error = session_->NavigateToURL(url);
48 if (error) { 48 if (error) {
49 response->SetError(error); 49 response->SetError(error);
50 return; 50 return;
51 } 51 }
52 } 52 }
53 53
54 54
55 } // namespace webdriver 55 } // namespace webdriver
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698