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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 } | 246 } |
247 | 247 |
248 void TestWebContents::TestDidFinishLoad(const GURL& url) { | 248 void TestWebContents::TestDidFinishLoad(const GURL& url) { |
249 FrameHostMsg_DidFinishLoad msg(0, url); | 249 FrameHostMsg_DidFinishLoad msg(0, url); |
250 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg); | 250 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg); |
251 } | 251 } |
252 | 252 |
253 void TestWebContents::TestDidFailLoadWithError( | 253 void TestWebContents::TestDidFailLoadWithError( |
254 const GURL& url, | 254 const GURL& url, |
255 int error_code, | 255 int error_code, |
256 const base::string16& error_description) { | 256 const base::string16& error_description, |
| 257 bool was_ignored_by_handler) { |
257 FrameHostMsg_DidFailLoadWithError msg( | 258 FrameHostMsg_DidFailLoadWithError msg( |
258 0, url, error_code, error_description); | 259 0, url, error_code, error_description, was_ignored_by_handler); |
259 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg); | 260 frame_tree_.root()->current_frame_host()->OnMessageReceived(msg); |
260 } | 261 } |
261 | 262 |
262 void TestWebContents::CreateNewWindow( | 263 void TestWebContents::CreateNewWindow( |
263 int render_process_id, | 264 int render_process_id, |
264 int route_id, | 265 int route_id, |
265 int main_frame_route_id, | 266 int main_frame_route_id, |
266 const ViewHostMsg_CreateWindow_Params& params, | 267 const ViewHostMsg_CreateWindow_Params& params, |
267 SessionStorageNamespace* session_storage_namespace) { | 268 SessionStorageNamespace* session_storage_namespace) { |
268 } | 269 } |
(...skipping 20 matching lines...) Expand all Loading... |
289 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { | 290 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { |
290 } | 291 } |
291 | 292 |
292 void TestWebContents::SaveFrameWithHeaders(const GURL& url, | 293 void TestWebContents::SaveFrameWithHeaders(const GURL& url, |
293 const Referrer& referrer, | 294 const Referrer& referrer, |
294 const std::string& headers) { | 295 const std::string& headers) { |
295 save_frame_headers_ = headers; | 296 save_frame_headers_ = headers; |
296 } | 297 } |
297 | 298 |
298 } // namespace content | 299 } // namespace content |
OLD | NEW |