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

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

Issue 6369003: New extension API: "tab.socketAddress" (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 11 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 = "[2001:db8::1]:80";
101 102
102 ViewHostMsg_FrameNavigate msg(1, params); 103 ViewHostMsg_FrameNavigate msg(1, params);
103 OnMsgNavigate(msg); 104 OnMsgNavigate(msg);
104 } 105 }
105 106
106 TestRenderWidgetHostView::TestRenderWidgetHostView(RenderWidgetHost* rwh) 107 TestRenderWidgetHostView::TestRenderWidgetHostView(RenderWidgetHost* rwh)
107 : rwh_(rwh), 108 : rwh_(rwh),
108 is_showing_(false) { 109 is_showing_(false) {
109 } 110 }
110 111
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 contents_.reset(); 299 contents_.reset();
299 300
300 // Make sure that we flush any messages related to TabContents destruction 301 // Make sure that we flush any messages related to TabContents destruction
301 // before we destroy the profile. 302 // before we destroy the profile.
302 MessageLoop::current()->RunAllPending(); 303 MessageLoop::current()->RunAllPending();
303 304
304 // Release the profile on the UI thread. 305 // Release the profile on the UI thread.
305 message_loop_.DeleteSoon(FROM_HERE, profile_.release()); 306 message_loop_.DeleteSoon(FROM_HERE, profile_.release());
306 message_loop_.RunAllPending(); 307 message_loop_.RunAllPending();
307 } 308 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698