Changeset 248666 in webkit
- Timestamp:
- Aug 14, 2019 3:13:55 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r248665 r248666 1 2019-08-14 Youenn Fablet <youenn@apple.com> 2 3 Make WebSWOriginStore::m_webSWServerConnections a WeakHashSet 4 https://bugs.webkit.org/show_bug.cgi?id=200661 5 6 Reviewed by Alex Christensen. 7 8 * NetworkProcess/ServiceWorker/WebSWOriginStore.cpp: 9 (WebKit::WebSWOriginStore::importComplete): 10 (WebKit::WebSWOriginStore::registerSWServerConnection): 11 (WebKit::WebSWOriginStore::unregisterSWServerConnection): 12 (WebKit::WebSWOriginStore::didInvalidateSharedMemory): 13 * NetworkProcess/ServiceWorker/WebSWOriginStore.h: 14 1 15 2019-08-14 Youenn Fablet <youenn@apple.com> 2 16 -
trunk/Source/WebKit/NetworkProcess/ServiceWorker/WebSWOriginStore.cpp
r236477 r248666 62 62 { 63 63 m_isImported = true; 64 for (auto *connection : m_webSWServerConnections)65 connection ->send(Messages::WebSWClientConnection::SetSWOriginTableIsImported());64 for (auto& connection : m_webSWServerConnections) 65 connection.send(Messages::WebSWClientConnection::SetSWOriginTableIsImported()); 66 66 } 67 67 68 68 void WebSWOriginStore::registerSWServerConnection(WebSWServerConnection& connection) 69 69 { 70 m_webSWServerConnections.add( &connection);70 m_webSWServerConnections.add(connection); 71 71 72 72 if (!m_store.isEmpty()) … … 79 79 void WebSWOriginStore::unregisterSWServerConnection(WebSWServerConnection& connection) 80 80 { 81 m_webSWServerConnections.remove( &connection);81 m_webSWServerConnections.remove(connection); 82 82 } 83 83 … … 93 93 void WebSWOriginStore::didInvalidateSharedMemory() 94 94 { 95 for (auto *connection : m_webSWServerConnections)96 sendStoreHandle( *connection);95 for (auto& connection : m_webSWServerConnections) 96 sendStoreHandle(connection); 97 97 } 98 98 -
trunk/Source/WebKit/NetworkProcess/ServiceWorker/WebSWOriginStore.h
r236477 r248666 30 30 #include "SharedStringHashStore.h" 31 31 #include <WebCore/SWOriginStore.h> 32 #include <wtf/ HashSet.h>32 #include <wtf/WeakHashSet.h> 33 33 34 34 namespace WebKit { … … 56 56 SharedStringHashStore m_store; 57 57 bool m_isImported { false }; 58 HashSet<WebSWServerConnection*> m_webSWServerConnections;58 WeakHashSet<WebSWServerConnection> m_webSWServerConnections; 59 59 }; 60 60
Note: See TracChangeset
for help on using the changeset viewer.