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

Side by Side Diff: chrome/browser/renderer_host/test/test_render_view_host.cc

Issue 6488010: Propagate the remote socket address to URLRequest and to ViewHostMsg_FrameNavigate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address eroman's comments Created 9 years, 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/test/test_render_view_host.h" 5 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
6 6
7 #include "chrome/browser/browser_url_handler.h" 7 #include "chrome/browser/browser_url_handler.h"
8 #include "chrome/browser/renderer_host/site_instance.h" 8 #include "chrome/browser/renderer_host/site_instance.h"
9 #include "chrome/browser/renderer_host/test/test_backing_store.h" 9 #include "chrome/browser/renderer_host/test/test_backing_store.h"
10 #include "chrome/browser/tab_contents/navigation_controller.h" 10 #include "chrome/browser/tab_contents/navigation_controller.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 params.searchable_form_url = GURL(); 91 params.searchable_form_url = GURL();
92 params.searchable_form_encoding = std::string(); 92 params.searchable_form_encoding = std::string();
93 params.password_form = PasswordForm(); 93 params.password_form = PasswordForm();
94 params.security_info = std::string(); 94 params.security_info = std::string();
95 params.gesture = NavigationGestureUser; 95 params.gesture = NavigationGestureUser;
96 params.contents_mime_type = std::string(); 96 params.contents_mime_type = std::string();
97 params.is_post = false; 97 params.is_post = false;
98 params.is_content_filtered = false; 98 params.is_content_filtered = false;
99 params.was_within_same_page = false; 99 params.was_within_same_page = false;
100 params.http_status_code = 0; 100 params.http_status_code = 0;
101 params.socket_address.set_host("2001:db8::1");
102 params.socket_address.set_port(80);
101 103
102 ViewHostMsg_FrameNavigate msg(1, params); 104 ViewHostMsg_FrameNavigate msg(1, params);
103 OnMsgNavigate(msg); 105 OnMsgNavigate(msg);
104 } 106 }
105 107
106 TestRenderWidgetHostView::TestRenderWidgetHostView(RenderWidgetHost* rwh) 108 TestRenderWidgetHostView::TestRenderWidgetHostView(RenderWidgetHost* rwh)
107 : rwh_(rwh), 109 : rwh_(rwh),
108 is_showing_(false) { 110 is_showing_(false) {
109 } 111 }
110 112
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 contents_.reset(); 337 contents_.reset();
336 338
337 // Make sure that we flush any messages related to TabContents destruction 339 // Make sure that we flush any messages related to TabContents destruction
338 // before we destroy the profile. 340 // before we destroy the profile.
339 MessageLoop::current()->RunAllPending(); 341 MessageLoop::current()->RunAllPending();
340 342
341 // Release the profile on the UI thread. 343 // Release the profile on the UI thread.
342 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); 344 message_loop_.DeleteSoon(FROM_HERE, profile_.release());
343 message_loop_.RunAllPending(); 345 message_loop_.RunAllPending();
344 } 346 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698