| 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 295 int error_code, | 295 int error_code, |
| 296 const base::string16& error_description, | 296 const base::string16& error_description, |
| 297 bool was_ignored_by_handler) { | 297 bool was_ignored_by_handler) { |
| 298 FrameHostMsg_DidFailLoadWithError msg( | 298 FrameHostMsg_DidFailLoadWithError msg( |
| 299 0, url, error_code, error_description, was_ignored_by_handler); | 299 0, url, error_code, error_description, was_ignored_by_handler); |
| 300 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg); | 300 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg); |
| 301 } | 301 } |
| 302 | 302 |
| 303 void TestWebContents::CreateNewWindow( | 303 void TestWebContents::CreateNewWindow( |
| 304 SiteInstance* source_site_instance, | 304 SiteInstance* source_site_instance, |
| 305 int route_id, | 305 int32 route_id, |
| 306 int main_frame_route_id, | 306 int32 main_frame_route_id, |
| 307 int32 main_frame_widget_route_id, |
| 307 const ViewHostMsg_CreateWindow_Params& params, | 308 const ViewHostMsg_CreateWindow_Params& params, |
| 308 SessionStorageNamespace* session_storage_namespace) { | 309 SessionStorageNamespace* session_storage_namespace) {} |
| 309 } | |
| 310 | 310 |
| 311 void TestWebContents::CreateNewWidget(int render_process_id, | 311 void TestWebContents::CreateNewWidget(int render_process_id, |
| 312 int route_id, | 312 int route_id, |
| 313 blink::WebPopupType popup_type) { | 313 blink::WebPopupType popup_type) { |
| 314 } | 314 } |
| 315 | 315 |
| 316 void TestWebContents::CreateNewFullscreenWidget(int render_process_id, | 316 void TestWebContents::CreateNewFullscreenWidget(int render_process_id, |
| 317 int route_id) { | 317 int route_id) { |
| 318 } | 318 } |
| 319 | 319 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 330 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { | 330 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { |
| 331 } | 331 } |
| 332 | 332 |
| 333 void TestWebContents::SaveFrameWithHeaders(const GURL& url, | 333 void TestWebContents::SaveFrameWithHeaders(const GURL& url, |
| 334 const Referrer& referrer, | 334 const Referrer& referrer, |
| 335 const std::string& headers) { | 335 const std::string& headers) { |
| 336 save_frame_headers_ = headers; | 336 save_frame_headers_ = headers; |
| 337 } | 337 } |
| 338 | 338 |
| 339 } // namespace content | 339 } // namespace content |
| OLD | NEW |