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

Side by Side Diff: content/test/test_web_contents.cc

Issue 19705013: [password autofill] Remove references to PasswordForm from RenderViewImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 "content/browser/browser_url_handler_impl.h" 9 #include "content/browser/browser_url_handler_impl.h"
10 #include "content/browser/renderer_host/render_view_host_impl.h" 10 #include "content/browser/renderer_host/render_view_host_impl.h"
11 #include "content/browser/renderer_host/test_render_view_host.h" 11 #include "content/browser/renderer_host/test_render_view_host.h"
12 #include "content/browser/site_instance_impl.h" 12 #include "content/browser/site_instance_impl.h"
13 #include "content/browser/web_contents/navigation_entry_impl.h" 13 #include "content/browser/web_contents/navigation_entry_impl.h"
14 #include "content/common/view_messages.h" 14 #include "content/common/view_messages.h"
15 #include "content/public/browser/notification_registrar.h" 15 #include "content/public/browser/notification_registrar.h"
16 #include "content/public/browser/notification_source.h" 16 #include "content/public/browser/notification_source.h"
17 #include "content/public/browser/notification_types.h" 17 #include "content/public/browser/notification_types.h"
18 #include "content/public/common/page_state.h" 18 #include "content/public/common/page_state.h"
19 #include "content/public/common/page_transition_types.h" 19 #include "content/public/common/page_transition_types.h"
20 #include "content/public/common/password_form.h"
21 #include "content/public/test/mock_render_process_host.h" 20 #include "content/public/test/mock_render_process_host.h"
22 21
23 namespace content { 22 namespace content {
24 23
25 TestWebContents::TestWebContents(BrowserContext* browser_context) 24 TestWebContents::TestWebContents(BrowserContext* browser_context)
26 : WebContentsImpl(browser_context, NULL), 25 : WebContentsImpl(browser_context, NULL),
27 transition_cross_site(false), 26 transition_cross_site(false),
28 delegate_view_override_(NULL), 27 delegate_view_override_(NULL),
29 expect_set_history_length_and_prune_(false), 28 expect_set_history_length_and_prune_(false),
30 expect_set_history_length_and_prune_site_instance_(NULL), 29 expect_set_history_length_and_prune_site_instance_(NULL),
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 ViewHostMsg_FrameNavigate_Params params; 70 ViewHostMsg_FrameNavigate_Params params;
72 71
73 params.page_id = page_id; 72 params.page_id = page_id;
74 params.url = url; 73 params.url = url;
75 params.referrer = referrer; 74 params.referrer = referrer;
76 params.transition = transition; 75 params.transition = transition;
77 params.redirects = std::vector<GURL>(); 76 params.redirects = std::vector<GURL>();
78 params.should_update_history = false; 77 params.should_update_history = false;
79 params.searchable_form_url = GURL(); 78 params.searchable_form_url = GURL();
80 params.searchable_form_encoding = std::string(); 79 params.searchable_form_encoding = std::string();
81 params.password_form = PasswordForm();
82 params.security_info = std::string(); 80 params.security_info = std::string();
83 params.gesture = NavigationGestureUser; 81 params.gesture = NavigationGestureUser;
84 params.was_within_same_page = false; 82 params.was_within_same_page = false;
85 params.is_post = false; 83 params.is_post = false;
86 params.page_state = PageState::CreateFromURL(url); 84 params.page_state = PageState::CreateFromURL(url);
87 85
88 DidNavigate(render_view_host, params); 86 DidNavigate(render_view_host, params);
89 } 87 }
90 88
91 WebPreferences TestWebContents::TestGetWebkitPrefs() { 89 WebPreferences TestWebContents::TestGetWebkitPrefs() {
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 } 239 }
242 240
243 void TestWebContents::ShowCreatedWidget(int route_id, 241 void TestWebContents::ShowCreatedWidget(int route_id,
244 const gfx::Rect& initial_pos) { 242 const gfx::Rect& initial_pos) {
245 } 243 }
246 244
247 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) { 245 void TestWebContents::ShowCreatedFullscreenWidget(int route_id) {
248 } 246 }
249 247
250 } // namespace content 248 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698