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

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
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_
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_json.cc » ('j') | chrome/browser/automation/automation_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698