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