• Victor Costan's avatar
    AppCache: Move kUnknownResponseDataSize into a class. · 1c62d6fe
    Victor Costan authored
    AppCache's net::DiskCache wrapper header currently declares a static
    const kUnknownResponseDataSize in the content namespace, resulting in a
    copy in each translation unit that includes the header. While the copies
    are most likely eliminated by the linker due to lack of use, this
    declaration still pollutes the namespace.
    
    This CL moves the constant into the HttpResponseInfoIOBuffer class, so
    it is only emitted once.
    
    This CL doesn't introduce any functional change.
    
    Bug: 1055133
    Change-Id: Ib9c8a339e6a543a908ee4c952bb0bc1174fa7dab
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2069842
    Commit-Queue: Victor Costan <pwnall@chromium.org>
    Auto-Submit: Victor Costan <pwnall@chromium.org>
    Reviewed-by: default avatarJoshua Bell <jsbell@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#744027}
    1c62d6fe
appcache_storage_unittest.cc 7.22 KB