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

Unified Diff: chrome/browser/automation/automation_provider_json.h

Issue 8790003: Allow the automation provider to accept an ID for performing render-view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_json.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_json.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698