diff options
author | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-11 22:33:58 +0000 |
---|---|---|
committer | amit@chromium.org <amit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-11 22:33:58 +0000 |
commit | f5cde2b583d923436f728660e18e181f83cfa602 (patch) | |
tree | c419f1b05a7525bdd7b24d86641974e45a8f1237 /chrome/test/automation/automation_messages.h | |
parent | 279cd421c952d1581b4ac9bbc977e5f08b45d3b3 (diff) | |
download | chromium_src-f5cde2b583d923436f728660e18e181f83cfa602.zip chromium_src-f5cde2b583d923436f728660e18e181f83cfa602.tar.gz chromium_src-f5cde2b583d923436f728660e18e181f83cfa602.tar.bz2 |
ExternalTabcontainer browser to initial URL
Browse the newly created external tab to the specified initial URL
if present, to about:blank otherwise. Also send information about
SSL status when sending navigation updates to the automation client.
BUG=none
TEST=CreateExternalTabWithUrl UI test
Review URL: http://codereview.chromium.org/193054
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26037 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/automation_messages.h')
-rw-r--r-- | chrome/test/automation/automation_messages.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/chrome/test/automation/automation_messages.h b/chrome/test/automation/automation_messages.h index 01d3a3f..416d168 100644 --- a/chrome/test/automation/automation_messages.h +++ b/chrome/test/automation/automation_messages.h @@ -325,6 +325,7 @@ struct ExternalTabSettings { bool is_off_the_record; bool load_requests_via_automation; bool handle_top_level_requests; + GURL initial_url; }; // Traits for ExternalTabSettings structure to pack/unpack. @@ -338,6 +339,7 @@ struct ParamTraits<ExternalTabSettings> { WriteParam(m, p.is_off_the_record); WriteParam(m, p.load_requests_via_automation); WriteParam(m, p.handle_top_level_requests); + WriteParam(m, p.initial_url); } static bool Read(const Message* m, void** iter, param_type* p) { return ReadParam(m, iter, &p->parent) && @@ -345,7 +347,8 @@ struct ParamTraits<ExternalTabSettings> { 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->handle_top_level_requests); + ReadParam(m, iter, &p->handle_top_level_requests) && + ReadParam(m, iter, &p->initial_url); } static void Log(const param_type& p, std::wstring* l) { l->append(L"("); @@ -360,6 +363,8 @@ struct ParamTraits<ExternalTabSettings> { LogParam(p.load_requests_via_automation, l); l->append(L", "); LogParam(p.handle_top_level_requests, l); + l->append(L", "); + LogParam(p.initial_url, l); l->append(L")"); } }; @@ -370,6 +375,8 @@ struct NavigationInfo { int navigation_index; std::wstring title; GURL url; + SecurityStyle security_style; + bool has_mixed_content; }; // Traits for NavigationInfo structure to pack/unpack. @@ -382,13 +389,17 @@ struct ParamTraits<NavigationInfo> { WriteParam(m, p.navigation_index); WriteParam(m, p.title); WriteParam(m, p.url); + WriteParam(m, p.security_style); + WriteParam(m, p.has_mixed_content); } static bool Read(const Message* m, void** iter, param_type* p) { return ReadParam(m, iter, &p->navigation_type) && ReadParam(m, iter, &p->relative_offset) && ReadParam(m, iter, &p->navigation_index) && ReadParam(m, iter, &p->title) && - ReadParam(m, iter, &p->url); + ReadParam(m, iter, &p->url) && + ReadParam(m, iter, &p->security_style) && + ReadParam(m, iter, &p->has_mixed_content); } static void Log(const param_type& p, std::wstring* l) { l->append(L"("); @@ -401,6 +412,10 @@ struct ParamTraits<NavigationInfo> { LogParam(p.title, l); l->append(L", "); LogParam(p.url, l); + l->append(L", "); + LogParam(p.security_style, l); + l->append(L", "); + LogParam(p.has_mixed_content, l); l->append(L")"); } }; |