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

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

Issue 125202: Revert 18373 - Consider a redirect following user gesture as userinitiated in... (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 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 } 1340 }
1341 } 1341 }
1342 1342
1343 void RenderView::DidFailLoadWithError(WebView* webview, 1343 void RenderView::DidFailLoadWithError(WebView* webview,
1344 const WebError& error, 1344 const WebError& error,
1345 WebFrame* frame) { 1345 WebFrame* frame) {
1346 } 1346 }
1347 1347
1348 void RenderView::DidFinishDocumentLoadForFrame(WebView* webview, 1348 void RenderView::DidFinishDocumentLoadForFrame(WebView* webview,
1349 WebFrame* frame) { 1349 WebFrame* frame) {
1350 Send(new ViewHostMsg_DocumentLoadedInFrame(routing_id_));
1351
1352 // The document has now been fully loaded. Scan for password forms to be 1350 // The document has now been fully loaded. Scan for password forms to be
1353 // sent up to the browser. 1351 // sent up to the browser.
1354 SendPasswordForms(frame); 1352 SendPasswordForms(frame);
1355 1353
1356 // Check whether we have new encoding name. 1354 // Check whether we have new encoding name.
1357 UpdateEncoding(frame, webview->GetMainFrameEncodingName()); 1355 UpdateEncoding(frame, webview->GetMainFrameEncodingName());
1358 1356
1359 if (RenderThread::current()) // Will be NULL during unit tests. 1357 if (RenderThread::current()) // Will be NULL during unit tests.
1360 RenderThread::current()->user_script_slave()->InjectScripts( 1358 RenderThread::current()->user_script_slave()->InjectScripts(
1361 frame, UserScript::DOCUMENT_END); 1359 frame, UserScript::DOCUMENT_END);
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after
2906 scoped_ptr<PasswordForm> password_form( 2904 scoped_ptr<PasswordForm> password_form(
2907 PasswordFormDomManager::CreatePasswordForm(form)); 2905 PasswordFormDomManager::CreatePasswordForm(form));
2908 if (password_form.get()) 2906 if (password_form.get())
2909 password_forms.push_back(*password_form); 2907 password_forms.push_back(*password_form);
2910 } 2908 }
2911 } 2909 }
2912 2910
2913 if (!password_forms.empty()) 2911 if (!password_forms.empty())
2914 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms)); 2912 Send(new ViewHostMsg_PasswordFormsSeen(routing_id_, password_forms));
2915 } 2913 }
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