-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Adopt smart pointers in NetworkResourceLoader.cpp #47368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adopt smart pointers in NetworkResourceLoader.cpp #47368
Conversation
EWS run on previous version of this PR (hash ddb42b5) |
Safer C++ Build #42042 (ddb42b5)❌ Found 1 failing file with 1 issue. Please address these issues before landing. See WebKit Guidelines for Safer C++ Programming. |
|
||
IPC::Connection& connection() { return m_connection.get(); } | ||
Ref<IPC::Connection> protectedConnection() { return connection(); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be needed. m_connection
is const.
NetworkProcess& networkProcess() { return m_networkProcess.get(); } | ||
Ref<NetworkProcess> protectedNetworkProcess() { return networkProcess(); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be needed. m_networkProcess
is const.
ddb42b5
to
dadd611
Compare
EWS run on previous version of this PR (hash dadd611) |
dadd611
to
c08fa58
Compare
EWS run on previous version of this PR (hash c08fa58) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
R=me.
c08fa58
to
478ea0c
Compare
EWS run on current version of this PR (hash 478ea0c) |
https://bugs.webkit.org/show_bug.cgi?id=295194 rdar://154650870 Reviewed by Per Arne Vollan and Anne van Kesteren. Smart pointer adoption as per static analyzer. * Source/WebKit/NetworkProcess/NetworkResourceLoader.cpp: (WebKit::NetworkResourceLoader::startContentFiltering): (WebKit::NetworkResourceLoader::convertToDownload): (WebKit::NetworkResourceLoader::doCrossOriginOpenerHandlingOfResponse): (WebKit::NetworkResourceLoader::didReceiveResponse): (WebKit::NetworkResourceLoader::didFinishLoading): (WebKit::NetworkResourceLoader::willSendRedirectedRequestInternal): (WebKit::NetworkResourceLoader::bufferingTimerFired): (WebKit::NetworkResourceLoader::sendBuffer): (WebKit::NetworkResourceLoader::didRetrieveCacheEntry): (WebKit::NetworkResourceLoader::sendResultForCacheEntry): (WebKit::NetworkResourceLoader::continueAfterServiceWorkerReceivedData): (WebKit::NetworkResourceLoader::continueAfterServiceWorkerReceivedResponse): (WebKit::NetworkResourceLoader::serviceWorkerDidFinish): (WebKit::NetworkResourceLoader::contentFilterDidBlock): (WebKit::NetworkResourceLoader::checkedContentFilter): * Source/WebKit/NetworkProcess/NetworkResourceLoader.h: * Source/WebKit/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations: Canonical link: https://commits.webkit.org/296860@main
478ea0c
to
5c33c7f
Compare
Committed 296860@main (5c33c7f): https://commits.webkit.org/296860@main Reviewed commits have been landed. Closing PR #47368 and removing active labels. |
5c33c7f
478ea0c
🛠 playstation