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