| Summary: | Network Cache: Add thread-safe accessors for storage paths | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Antti Koivisto <koivisto> | ||||
| Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | andersca | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Antti Koivisto
2015-04-13 08:11:11 PDT
Created attachment 250639 [details]
patch
Comment on attachment 250639 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=250639&action=review > Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.h:83 > + const String baseDirectoryPath() const; > + const String directoryPath() const; I don’t understand the value of returning const String rather than String. These should just return String. Comment on attachment 250639 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=250639&action=review > Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.cpp:79 > + // This is safe from any thread. > + return StringView(m_baseDirectoryPath).toString(); I think this could just call m_baseDirectoryPath.isolatedCopy() (if m_baseDirectoryPath was kept a String) |