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

Side by Side Diff: Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp

Issue 9963061: Merge 112184 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « Source/WebKit/win/WebFrame.cpp ('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 /* 1 /*
2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2010, 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 void WebFrameLoaderClient::dispatchWillSubmitForm(FramePolicyFunction function, PassRefPtr<FormState> prpFormState) 712 void WebFrameLoaderClient::dispatchWillSubmitForm(FramePolicyFunction function, PassRefPtr<FormState> prpFormState)
713 { 713 {
714 WebPage* webPage = m_frame->page(); 714 WebPage* webPage = m_frame->page();
715 if (!webPage) 715 if (!webPage)
716 return; 716 return;
717 717
718 // FIXME: Pass more of the form state. 718 // FIXME: Pass more of the form state.
719 RefPtr<FormState> formState = prpFormState; 719 RefPtr<FormState> formState = prpFormState;
720 720
721 HTMLFormElement* form = formState->form(); 721 HTMLFormElement* form = formState->form();
722 WebFrame* sourceFrame = static_cast<WebFrameLoaderClient*>(formState->source Frame()->loader()->client())->webFrame(); 722 WebFrame* sourceFrame = static_cast<WebFrameLoaderClient*>(formState->source Document()->frame()->loader()->client())->webFrame();
723 const Vector<std::pair<String, String> >& values = formState->textFieldValue s(); 723 const Vector<std::pair<String, String> >& values = formState->textFieldValue s();
724 724
725 RefPtr<APIObject> userData; 725 RefPtr<APIObject> userData;
726 webPage->injectedBundleFormClient().willSubmitForm(webPage, form, m_frame, s ourceFrame, values, userData); 726 webPage->injectedBundleFormClient().willSubmitForm(webPage, form, m_frame, s ourceFrame, values, userData);
727 727
728 728
729 uint64_t listenerID = m_frame->setUpPolicyListener(function); 729 uint64_t listenerID = m_frame->setUpPolicyListener(function);
730 StringPairVector valuesVector(values); 730 StringPairVector valuesVector(values);
731 731
732 webPage->send(Messages::WebPageProxy::WillSubmitForm(m_frame->frameID(), sou rceFrame->frameID(), valuesVector, listenerID, InjectedBundleUserMessageEncoder( userData.get()))); 732 webPage->send(Messages::WebPageProxy::WillSubmitForm(m_frame->frameID(), sou rceFrame->frameID(), valuesVector, listenerID, InjectedBundleUserMessageEncoder( userData.get())));
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after
1441 webPage->didChangeScrollOffsetForMainFrame(); 1441 webPage->didChangeScrollOffsetForMainFrame();
1442 } 1442 }
1443 1443
1444 PassRefPtr<FrameNetworkingContext> WebFrameLoaderClient::createNetworkingContext () 1444 PassRefPtr<FrameNetworkingContext> WebFrameLoaderClient::createNetworkingContext ()
1445 { 1445 {
1446 RefPtr<WebFrameNetworkingContext> context = WebFrameNetworkingContext::creat e(m_frame); 1446 RefPtr<WebFrameNetworkingContext> context = WebFrameNetworkingContext::creat e(m_frame);
1447 return context.release(); 1447 return context.release();
1448 } 1448 }
1449 1449
1450 } // namespace WebKit 1450 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/win/WebFrame.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698