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

Side by Side Diff: Source/web/FrameLoaderClientImpl.cpp

Issue 1288323006: Remove willRequestResource callback, it is unused outside of tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove some experiments I accidentally included Created 5 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 | « Source/web/FrameLoaderClientImpl.h ('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) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 #include "public/platform/WebApplicationCacheHost.h" 70 #include "public/platform/WebApplicationCacheHost.h"
71 #include "public/platform/WebMimeRegistry.h" 71 #include "public/platform/WebMimeRegistry.h"
72 #include "public/platform/WebRTCPeerConnectionHandler.h" 72 #include "public/platform/WebRTCPeerConnectionHandler.h"
73 #include "public/platform/WebSecurityOrigin.h" 73 #include "public/platform/WebSecurityOrigin.h"
74 #include "public/platform/WebServiceWorkerProvider.h" 74 #include "public/platform/WebServiceWorkerProvider.h"
75 #include "public/platform/WebServiceWorkerProviderClient.h" 75 #include "public/platform/WebServiceWorkerProviderClient.h"
76 #include "public/platform/WebURL.h" 76 #include "public/platform/WebURL.h"
77 #include "public/platform/WebURLError.h" 77 #include "public/platform/WebURLError.h"
78 #include "public/platform/WebVector.h" 78 #include "public/platform/WebVector.h"
79 #include "public/web/WebAutofillClient.h" 79 #include "public/web/WebAutofillClient.h"
80 #include "public/web/WebCachedURLRequest.h"
81 #include "public/web/WebContentSettingsClient.h" 80 #include "public/web/WebContentSettingsClient.h"
82 #include "public/web/WebDOMEvent.h" 81 #include "public/web/WebDOMEvent.h"
83 #include "public/web/WebDocument.h" 82 #include "public/web/WebDocument.h"
84 #include "public/web/WebFormElement.h" 83 #include "public/web/WebFormElement.h"
85 #include "public/web/WebFrameClient.h" 84 #include "public/web/WebFrameClient.h"
86 #include "public/web/WebNode.h" 85 #include "public/web/WebNode.h"
87 #include "public/web/WebPlugin.h" 86 #include "public/web/WebPlugin.h"
88 #include "public/web/WebPluginParams.h" 87 #include "public/web/WebPluginParams.h"
89 #include "public/web/WebPluginPlaceholder.h" 88 #include "public/web/WebPluginPlaceholder.h"
90 #include "public/web/WebViewClient.h" 89 #include "public/web/WebViewClient.h"
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 navigationInfo.frame = m_webFrame; 548 navigationInfo.frame = m_webFrame;
550 navigationInfo.extraData = ds->extraData(); 549 navigationInfo.extraData = ds->extraData();
551 navigationInfo.navigationType = ds->navigationType(); 550 navigationInfo.navigationType = ds->navigationType();
552 navigationInfo.defaultPolicy = static_cast<WebNavigationPolicy>(policy); 551 navigationInfo.defaultPolicy = static_cast<WebNavigationPolicy>(policy);
553 navigationInfo.isRedirect = ds->isRedirect(); 552 navigationInfo.isRedirect = ds->isRedirect();
554 553
555 WebNavigationPolicy webPolicy = m_webFrame->client()->decidePolicyForNavigat ion(navigationInfo); 554 WebNavigationPolicy webPolicy = m_webFrame->client()->decidePolicyForNavigat ion(navigationInfo);
556 return static_cast<NavigationPolicy>(webPolicy); 555 return static_cast<NavigationPolicy>(webPolicy);
557 } 556 }
558 557
559 void FrameLoaderClientImpl::dispatchWillRequestResource(FetchRequest* request)
560 {
561 if (m_webFrame->client()) {
562 WebCachedURLRequest urlRequest(request);
563 m_webFrame->client()->willRequestResource(m_webFrame, urlRequest);
564 }
565 }
566
567 void FrameLoaderClientImpl::dispatchWillSendSubmitEvent(HTMLFormElement* form) 558 void FrameLoaderClientImpl::dispatchWillSendSubmitEvent(HTMLFormElement* form)
568 { 559 {
569 if (m_webFrame->client()) 560 if (m_webFrame->client())
570 m_webFrame->client()->willSendSubmitEvent(m_webFrame, WebFormElement(for m)); 561 m_webFrame->client()->willSendSubmitEvent(m_webFrame, WebFormElement(for m));
571 } 562 }
572 563
573 void FrameLoaderClientImpl::dispatchWillSubmitForm(HTMLFormElement* form) 564 void FrameLoaderClientImpl::dispatchWillSubmitForm(HTMLFormElement* form)
574 { 565 {
575 if (m_webFrame->client()) 566 if (m_webFrame->client())
576 m_webFrame->client()->willSubmitForm(m_webFrame, WebFormElement(form)); 567 m_webFrame->client()->willSubmitForm(m_webFrame, WebFormElement(form));
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 973
983 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) 974 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type)
984 { 975 {
985 if (m_webFrame->client()) { 976 if (m_webFrame->client()) {
986 m_webFrame->client()->suddenTerminationDisablerChanged( 977 m_webFrame->client()->suddenTerminationDisablerChanged(
987 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); 978 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type));
988 } 979 }
989 } 980 }
990 981
991 } // namespace blink 982 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698