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

Side by Side Diff: chrome/renderer/render_view.cc

Issue 126221: Revert 18512 - Revert 18373 Consider a redirect following user gesture as us... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/renderer/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 } 1265 }
1266 } 1266 }
1267 1267
1268 void RenderView::DidFailLoadWithError(WebView* webview, 1268 void RenderView::DidFailLoadWithError(WebView* webview,
1269 const WebError& error, 1269 const WebError& error,
1270 WebFrame* frame) { 1270 WebFrame* frame) {
1271 } 1271 }
1272 1272
1273 void RenderView::DidFinishDocumentLoadForFrame(WebView* webview, 1273 void RenderView::DidFinishDocumentLoadForFrame(WebView* webview,
1274 WebFrame* frame) { 1274 WebFrame* frame) {
1275 Send(new ViewHostMsg_DocumentLoadedInFrame(routing_id_));
1276
1275 // The document has now been fully loaded. Scan for password forms to be 1277 // The document has now been fully loaded. Scan for password forms to be
1276 // sent up to the browser. 1278 // sent up to the browser.
1277 SendPasswordForms(frame); 1279 SendPasswordForms(frame);
1278 1280
1279 // Check whether we have new encoding name. 1281 // Check whether we have new encoding name.
1280 UpdateEncoding(frame, webview->GetMainFrameEncodingName()); 1282 UpdateEncoding(frame, webview->GetMainFrameEncodingName());
1281 1283
1282 if (RenderThread::current()) // Will be NULL during unit tests. 1284 if (RenderThread::current()) // Will be NULL during unit tests.
1283 RenderThread::current()->user_script_slave()->InjectScripts( 1285 RenderThread::current()->user_script_slave()->InjectScripts(
1284 frame, UserScript::DOCUMENT_END); 1286 frame, UserScript::DOCUMENT_END);
(...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after
2835 scoped_ptr<PasswordForm> password_form( 2837 scoped_ptr<PasswordForm> password_form(
2836 PasswordFormDomManager::CreatePasswordForm(form)); 2838 PasswordFormDomManager::CreatePasswordForm(form));
2837 if (password_form.get()) 2839 if (password_form.get())
2838 password_forms.push_back(*password_form); 2840 password_forms.push_back(*password_form);
2839 } 2841 }
2840 } 2842 }
2841 2843
2842 if (!password_forms.empty()) 2844 if (!password_forms.empty())
2843 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms)); 2845 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms));
2844 } 2846 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/test/data/History/history_length_test_page_1.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698