| 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 "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "content/browser/browser_url_handler_impl.h" | 10 #include "content/browser/browser_url_handler_impl.h" |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 const GURL& url, | 271 const GURL& url, |
| 272 int error_code, | 272 int error_code, |
| 273 const base::string16& error_description, | 273 const base::string16& error_description, |
| 274 bool was_ignored_by_handler) { | 274 bool was_ignored_by_handler) { |
| 275 FrameHostMsg_DidFailLoadWithError msg( | 275 FrameHostMsg_DidFailLoadWithError msg( |
| 276 0, url, error_code, error_description, was_ignored_by_handler); | 276 0, url, error_code, error_description, was_ignored_by_handler); |
| 277 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg); | 277 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg); |
| 278 } | 278 } |
| 279 | 279 |
| 280 void TestWebContents::CreateNewWindow( | 280 void TestWebContents::CreateNewWindow( |
| 281 int render_process_id, | 281 SiteInstance* source_site_instance, |
| 282 int route_id, | 282 int route_id, |
| 283 int main_frame_route_id, | 283 int main_frame_route_id, |
| 284 const ViewHostMsg_CreateWindow_Params& params, | 284 const ViewHostMsg_CreateWindow_Params& params, |
| 285 SessionStorageNamespace* session_storage_namespace) { | 285 SessionStorageNamespace* session_storage_namespace) { |
| 286 } | 286 } |
| 287 | 287 |
| 288 void TestWebContents::CreateNewWidget(int render_process_id, | 288 void TestWebContents::CreateNewWidget(int render_process_id, |
| 289 int route_id, | 289 int route_id, |
| 290 blink::WebPopupType popup_type) { | 290 blink::WebPopupType popup_type) { |
| 291 } | 291 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 307 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { | 307 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { |
| 308 } | 308 } |
| 309 | 309 |
| 310 void TestWebContents::SaveFrameWithHeaders(const GURL& url, | 310 void TestWebContents::SaveFrameWithHeaders(const GURL& url, |
| 311 const Referrer& referrer, | 311 const Referrer& referrer, |
| 312 const std::string& headers) { | 312 const std::string& headers) { |
| 313 save_frame_headers_ = headers; | 313 save_frame_headers_ = headers; |
| 314 } | 314 } |
| 315 | 315 |
| 316 } // namespace content | 316 } // namespace content |
| OLD | NEW |