| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/test/test_web_contents.h" | 5 #include "content/test/test_web_contents.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "content/browser/browser_url_handler_impl.h" | 9 #include "content/browser/browser_url_handler_impl.h" |
| 10 #include "content/browser/frame_host/cross_process_frame_connector.h" | 10 #include "content/browser/frame_host/cross_process_frame_connector.h" |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 params.page_id = page_id; | 128 params.page_id = page_id; |
| 129 params.nav_entry_id = nav_entry_id; | 129 params.nav_entry_id = nav_entry_id; |
| 130 params.url = url; | 130 params.url = url; |
| 131 params.referrer = referrer; | 131 params.referrer = referrer; |
| 132 params.transition = transition; | 132 params.transition = transition; |
| 133 params.redirects = std::vector<GURL>(); | 133 params.redirects = std::vector<GURL>(); |
| 134 params.should_update_history = false; | 134 params.should_update_history = false; |
| 135 params.searchable_form_url = GURL(); | 135 params.searchable_form_url = GURL(); |
| 136 params.searchable_form_encoding = std::string(); | 136 params.searchable_form_encoding = std::string(); |
| 137 params.did_create_new_entry = did_create_new_entry; | 137 params.did_create_new_entry = did_create_new_entry; |
| 138 params.security_info = std::string(); | |
| 139 params.gesture = NavigationGestureUser; | 138 params.gesture = NavigationGestureUser; |
| 140 params.was_within_same_page = false; | 139 params.was_within_same_page = false; |
| 141 params.method = "GET"; | 140 params.method = "GET"; |
| 142 params.page_state = PageState::CreateFromURL(url); | 141 params.page_state = PageState::CreateFromURL(url); |
| 143 params.contents_mime_type = std::string("text/html"); | 142 params.contents_mime_type = std::string("text/html"); |
| 144 | 143 |
| 145 rfh->SendNavigateWithParams(¶ms); | 144 rfh->SendNavigateWithParams(¶ms); |
| 146 } | 145 } |
| 147 | 146 |
| 148 const std::string& TestWebContents::GetSaveFrameHeaders() { | 147 const std::string& TestWebContents::GetSaveFrameHeaders() { |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 int route_id) { | 355 int route_id) { |
| 357 } | 356 } |
| 358 | 357 |
| 359 void TestWebContents::SaveFrameWithHeaders(const GURL& url, | 358 void TestWebContents::SaveFrameWithHeaders(const GURL& url, |
| 360 const Referrer& referrer, | 359 const Referrer& referrer, |
| 361 const std::string& headers) { | 360 const std::string& headers) { |
| 362 save_frame_headers_ = headers; | 361 save_frame_headers_ = headers; |
| 363 } | 362 } |
| 364 | 363 |
| 365 } // namespace content | 364 } // namespace content |
| OLD | NEW |