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

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

Issue 1846143003: Propogate loading behavior data from Blink to content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
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 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 if (m_webFrame->client()) 721 if (m_webFrame->client())
722 m_webFrame->client()->didRunContentWithCertificateErrors(url, securityIn fo, mainResourceUrl, mainResourceSecurityInfo); 722 m_webFrame->client()->didRunContentWithCertificateErrors(url, securityIn fo, mainResourceUrl, mainResourceSecurityInfo);
723 } 723 }
724 724
725 void FrameLoaderClientImpl::didChangePerformanceTiming() 725 void FrameLoaderClientImpl::didChangePerformanceTiming()
726 { 726 {
727 if (m_webFrame->client()) 727 if (m_webFrame->client())
728 m_webFrame->client()->didChangePerformanceTiming(); 728 m_webFrame->client()->didChangePerformanceTiming();
729 } 729 }
730 730
731 void FrameLoaderClientImpl::didUseExperiment(WebExperimentData data)
732 {
733 if (m_webFrame->client())
734 m_webFrame->client()->didUseExperiment(data);
735 }
736
731 void FrameLoaderClientImpl::selectorMatchChanged(const Vector<String>& addedSele ctors, const Vector<String>& removedSelectors) 737 void FrameLoaderClientImpl::selectorMatchChanged(const Vector<String>& addedSele ctors, const Vector<String>& removedSelectors)
732 { 738 {
733 if (WebFrameClient* client = m_webFrame->client()) 739 if (WebFrameClient* client = m_webFrame->client())
734 client->didMatchCSS(m_webFrame, WebVector<WebString>(addedSelectors), We bVector<WebString>(removedSelectors)); 740 client->didMatchCSS(m_webFrame, WebVector<WebString>(addedSelectors), We bVector<WebString>(removedSelectors));
735 } 741 }
736 742
737 RawPtr<DocumentLoader> FrameLoaderClientImpl::createDocumentLoader(LocalFrame* f rame, const ResourceRequest& request, const SubstituteData& data) 743 RawPtr<DocumentLoader> FrameLoaderClientImpl::createDocumentLoader(LocalFrame* f rame, const ResourceRequest& request, const SubstituteData& data)
738 { 744 {
739 RawPtr<WebDataSourceImpl> ds = WebDataSourceImpl::create(frame, request, dat a); 745 RawPtr<WebDataSourceImpl> ds = WebDataSourceImpl::create(frame, request, dat a);
740 if (m_webFrame->client()) 746 if (m_webFrame->client())
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 return nullptr; 1063 return nullptr;
1058 return m_webFrame->client()->frameBlameContext(); 1064 return m_webFrame->client()->frameBlameContext();
1059 } 1065 }
1060 1066
1061 RawPtr<LinkResource> FrameLoaderClientImpl::createServiceWorkerLinkResource(HTML LinkElement* owner) 1067 RawPtr<LinkResource> FrameLoaderClientImpl::createServiceWorkerLinkResource(HTML LinkElement* owner)
1062 { 1068 {
1063 return ServiceWorkerLinkResource::create(owner); 1069 return ServiceWorkerLinkResource::create(owner);
1064 } 1070 }
1065 1071
1066 } // namespace blink 1072 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698