diff options
author | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 13:28:11 +0000 |
---|---|---|
committer | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-28 13:28:11 +0000 |
commit | 5f450e5c6fc98a762cebb38cd080731bedd61ae3 (patch) | |
tree | de1e6a257709c220222a6ab9defac23aade6e45c /chrome/test/automation | |
parent | 60147f3b071444f0abfb320e62a0c9f2b666d443 (diff) | |
download | chromium_src-5f450e5c6fc98a762cebb38cd080731bedd61ae3.zip chromium_src-5f450e5c6fc98a762cebb38cd080731bedd61ae3.tar.gz chromium_src-5f450e5c6fc98a762cebb38cd080731bedd61ae3.tar.bz2 |
Navigation and cookies for Automation
Give Automation better visibility and control over navigations.
Also, make it possible for automation to implement a dummy cookie
store to go with dummy request serving over automation.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/159189
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21836 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation')
-rw-r--r-- | chrome/test/automation/automation_messages.h | 7 | ||||
-rw-r--r-- | chrome/test/automation/automation_messages_internal.h | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/chrome/test/automation/automation_messages.h b/chrome/test/automation/automation_messages.h index 710b170..7fa2aa7 100644 --- a/chrome/test/automation/automation_messages.h +++ b/chrome/test/automation/automation_messages.h @@ -303,6 +303,7 @@ struct ExternalTabSettings { unsigned int style; bool is_off_the_record; bool load_requests_via_automation; + bool handle_top_level_requests; }; // Traits for ExternalTabSettings structure to pack/unpack. @@ -315,13 +316,15 @@ struct ParamTraits<ExternalTabSettings> { WriteParam(m, p.style); WriteParam(m, p.is_off_the_record); WriteParam(m, p.load_requests_via_automation); + WriteParam(m, p.handle_top_level_requests); } static bool Read(const Message* m, void** iter, param_type* p) { return ReadParam(m, iter, &p->parent) && ReadParam(m, iter, &p->dimensions) && ReadParam(m, iter, &p->style) && ReadParam(m, iter, &p->is_off_the_record) && - ReadParam(m, iter, &p->load_requests_via_automation); + ReadParam(m, iter, &p->load_requests_via_automation) && + ReadParam(m, iter, &p->handle_top_level_requests); } static void Log(const param_type& p, std::wstring* l) { l->append(L"("); @@ -334,6 +337,8 @@ struct ParamTraits<ExternalTabSettings> { LogParam(p.is_off_the_record, l); l->append(L", "); LogParam(p.load_requests_via_automation, l); + l->append(L", "); + LogParam(p.handle_top_level_requests, l); l->append(L")"); } }; diff --git a/chrome/test/automation/automation_messages_internal.h b/chrome/test/automation/automation_messages_internal.h index b899139..39ce010 100644 --- a/chrome/test/automation/automation_messages_internal.h +++ b/chrome/test/automation/automation_messages_internal.h @@ -960,4 +960,9 @@ IPC_BEGIN_MESSAGES(Automation) IPC_MESSAGE_ROUTED1(AutomationMsg_PrintAsync, int /* tab_handle */) + IPC_MESSAGE_ROUTED3(AutomationMsg_SetCookieAsync, + int /* tab_handle */, + GURL /* url */, + std::string /* cookie */) + IPC_END_MESSAGES(Automation) |