summaryrefslogtreecommitdiffstats
path: root/chrome/test/webdriver/commands/source_command.h
diff options
context:
space:
mode:
authorkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-26 03:45:05 +0000
committerkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-26 03:45:05 +0000
commitdbe79aa3f36da84af6d62fe90ff4488c6dbd0126 (patch)
tree6da201ef392d43887f98d02ea7eeb6511de4d10e /chrome/test/webdriver/commands/source_command.h
parentfcb247c3df9d8f7bd304d51c7473318cb256f119 (diff)
downloadchromium_src-dbe79aa3f36da84af6d62fe90ff4488c6dbd0126.zip
chromium_src-dbe79aa3f36da84af6d62fe90ff4488c6dbd0126.tar.gz
chromium_src-dbe79aa3f36da84af6d62fe90ff4488c6dbd0126.tar.bz2
In chromedriver, fix and cleanup the command to get the page source.
BUG=none TEST=none Review URL: http://codereview.chromium.org/6745030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79485 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/webdriver/commands/source_command.h')
-rw-r--r--chrome/test/webdriver/commands/source_command.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/chrome/test/webdriver/commands/source_command.h b/chrome/test/webdriver/commands/source_command.h
index cc8b1e7..0248d34 100644
--- a/chrome/test/webdriver/commands/source_command.h
+++ b/chrome/test/webdriver/commands/source_command.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -10,12 +10,13 @@
#include "chrome/test/webdriver/commands/webdriver_command.h"
+class DictionaryValue;
+
namespace webdriver {
class Response;
-// Controls navigate to new web pages for the current tab. A call with
-// an HTTP GET will return the source of the tab. See:
+// Gets the page source. See:
// http://code.google.com/p/selenium/wiki/JsonWireProtocol#/session/:sessionId/source
class SourceCommand : public WebDriverCommand {
public:
@@ -27,12 +28,9 @@ class SourceCommand : public WebDriverCommand {
virtual void ExecuteGet(Response* const response);
private:
- virtual bool RequiresValidTab();
-
DISALLOW_COPY_AND_ASSIGN(SourceCommand);
};
} // namespace webdriver
#endif // CHROME_TEST_WEBDRIVER_COMMANDS_SOURCE_COMMAND_H_
-