Chromium Code Reviews| 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..28c1fc5207f672795cc2ebbe70457ffd33600838 100644 |
| --- a/chrome/browser/automation/automation_provider_json.h |
| +++ b/chrome/browser/automation/automation_provider_json.h |
| @@ -12,9 +12,13 @@ |
| #include "base/compiler_specific.h" |
| +class AutomationId; |
| class AutomationProvider; |
| class Browser; |
| +class Profile; |
| +class RenderViewHost; |
| class TabContents; |
| +class TabContentsWrapper; |
|
dennis_jeffrey
2011/12/03 00:19:37
Where is this needed?
kkania
2011/12/03 00:34:31
Removed.
|
| namespace base { |
| class DictionaryValue; |
| @@ -73,4 +77,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_ |