Index: chrome/browser/automation/automation_provider_json.h |
diff --git a/chrome/browser/automation/automation_provider_json.h b/chrome/browser/automation/automation_provider_json.h |
index 1ea31db5b268c2e0f0fd688ef503032c6b155e56..a2da6f8d50d57a75296b9f7aab056461de5f9d48 100644 |
--- a/chrome/browser/automation/automation_provider_json.h |
+++ b/chrome/browser/automation/automation_provider_json.h |
@@ -12,8 +12,11 @@ |
#include "base/compiler_specific.h" |
+class AutomationId; |
class AutomationProvider; |
class Browser; |
+class Profile; |
+class RenderViewHost; |
class TabContents; |
namespace base { |
@@ -73,4 +76,22 @@ bool GetBrowserAndTabFromJSONArgs(base::DictionaryValue* args, |
TabContents** tab, |
std::string* error) WARN_UNUSED_RESULT; |
+// Gets an automation ID from the given value in the given dicitionary |args|. |
+// Returns true on success and sets |id|. Otherwise, |error| will be set. |
+bool GetAutomationIdFromJSONArgs( |
+ base::DictionaryValue* args, |
+ const std::string& key_name, |
+ AutomationId* id, |
+ std::string* error) WARN_UNUSED_RESULT; |
+ |
+// Gets the render view specified by the given dictionary |args|. |args| |
+// should contain a key 'view_id' which refers to an automation ID for the |
+// render view. Returns true on success and sets |rvh|. Otherwise, |error| |
+// will be set. |
+bool GetRenderViewFromJSONArgs( |
+ base::DictionaryValue* args, |
+ Profile* profile, |
+ RenderViewHost** rvh, |
+ std::string* error) WARN_UNUSED_RESULT; |
+ |
#endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_JSON_H_ |