Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(691)

Side by Side Diff: content/browser/renderer_host/test_render_view_host.cc

Issue 11054025: [Sync] Add HTTP status codes to NavigationEntry and TabNavigation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/browser/renderer_host/test_backing_store.h" 5 #include "content/browser/renderer_host/test_backing_store.h"
6 #include "content/browser/dom_storage/dom_storage_context_impl.h" 6 #include "content/browser/dom_storage/dom_storage_context_impl.h"
7 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 7 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
8 #include "content/browser/renderer_host/test_render_view_host.h" 8 #include "content/browser/renderer_host/test_render_view_host.h"
9 #include "content/browser/site_instance_impl.h" 9 #include "content/browser/site_instance_impl.h"
10 #include "content/browser/web_contents/navigation_controller_impl.h" 10 #include "content/browser/web_contents/navigation_controller_impl.h"
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 params.redirects = std::vector<GURL>(); 319 params.redirects = std::vector<GURL>();
320 params.should_update_history = true; 320 params.should_update_history = true;
321 params.searchable_form_url = GURL(); 321 params.searchable_form_url = GURL();
322 params.searchable_form_encoding = std::string(); 322 params.searchable_form_encoding = std::string();
323 params.password_form = PasswordForm(); 323 params.password_form = PasswordForm();
324 params.security_info = std::string(); 324 params.security_info = std::string();
325 params.gesture = NavigationGestureUser; 325 params.gesture = NavigationGestureUser;
326 params.contents_mime_type = contents_mime_type_; 326 params.contents_mime_type = contents_mime_type_;
327 params.is_post = false; 327 params.is_post = false;
328 params.was_within_same_page = false; 328 params.was_within_same_page = false;
329 params.http_status_code = 0; 329 params.http_status_code = 200;
330 params.socket_address.set_host("2001:db8::1"); 330 params.socket_address.set_host("2001:db8::1");
331 params.socket_address.set_port(80); 331 params.socket_address.set_port(80);
332 params.was_fetched_via_proxy = simulate_fetch_via_proxy_; 332 params.was_fetched_via_proxy = simulate_fetch_via_proxy_;
333 params.content_state = webkit_glue::CreateHistoryStateForURL(GURL(url)); 333 params.content_state = webkit_glue::CreateHistoryStateForURL(GURL(url));
334 params.original_request_url = original_request_url; 334 params.original_request_url = original_request_url;
335 335
336 ViewHostMsg_FrameNavigate msg(1, params); 336 ViewHostMsg_FrameNavigate msg(1, params);
337 OnMsgNavigate(msg); 337 OnMsgNavigate(msg);
338 } 338 }
339 339
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 383
384 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { 384 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() {
385 return static_cast<TestRenderViewHost*>(active_rvh()); 385 return static_cast<TestRenderViewHost*>(active_rvh());
386 } 386 }
387 387
388 TestWebContents* RenderViewHostImplTestHarness::contents() { 388 TestWebContents* RenderViewHostImplTestHarness::contents() {
389 return static_cast<TestWebContents*>(web_contents()); 389 return static_cast<TestWebContents*>(web_contents());
390 } 390 }
391 391
392 } // namespace content 392 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698