Add a NavigateToURL automation method which uses the JSON interface. Use it in ChromeDriver.
BUG=none
TEST=none

Review URL: http://codereview.chromium.org/6588115

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76820 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/test/webdriver/automation.h b/chrome/test/webdriver/automation.h
index 0be141a..b773f4c 100644
--- a/chrome/test/webdriver/automation.h
+++ b/chrome/test/webdriver/automation.h
@@ -15,6 +15,7 @@
 #include "chrome/common/automation_constants.h"
 #include "ui/base/keycodes/keyboard_codes.h"
 
+class AutomationProxy;
 class DictionaryValue;
 class FilePath;
 class GURL;
@@ -114,7 +115,9 @@
 
  private:
   typedef std::map<int, scoped_refptr<TabProxy> > TabIdMap;
+
   TabProxy* GetTabById(int tab_id);
+  AutomationProxy* automation() const;
 
   scoped_ptr<ProxyLauncher> launcher_;
   // Map from tab ID to |TabProxy|. The tab ID is simply the |AutomationHandle|
@@ -124,6 +127,8 @@
   bool SendJSONRequest(
       int tab_id, const DictionaryValue& dict, std::string* reply);
 
+  bool GetIndicesForTab(int tab_id, int* browser_index, int* tab_index);
+
   DISALLOW_COPY_AND_ASSIGN(Automation);
 };