Changeset 191390 in webkit


Ignore:
Timestamp:
Oct 21, 2015 10:12:35 AM (9 years ago)
Author:
Chris Dumez
Message:

Add assertions to NetworkCache::Entry constructor to make sure a key's type is "resource"
https://bugs.webkit.org/show_bug.cgi?id=150369

Reviewed by Antti Koivisto.

Add assertions to NetworkCache::Entry constructor to make sure a key's
type is "resource" now that the NetworkCache storage supports other
types of entries.

  • NetworkProcess/cache/NetworkCacheEntry.cpp:

(WebKit::NetworkCache::Entry::Entry):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r191381 r191390  
     12015-10-21  Chris Dumez  <cdumez@apple.com>
     2
     3        Add assertions to NetworkCache::Entry constructor to make sure a key's type is "resource"
     4        https://bugs.webkit.org/show_bug.cgi?id=150369
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Add assertions to NetworkCache::Entry constructor to make sure a key's
     9        type is "resource" now that the NetworkCache storage supports other
     10        types of entries.
     11
     12        * NetworkProcess/cache/NetworkCacheEntry.cpp:
     13        (WebKit::NetworkCache::Entry::Entry):
     14
    1152015-10-21  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebKit2/NetworkProcess/cache/NetworkCacheEntry.cpp

    r184620 r191390  
    4747    , m_buffer(WTF::move(buffer))
    4848{
     49    ASSERT(m_key.type() == "resource");
    4950}
    5051
     
    5455    , m_sourceStorageRecord(storageEntry)
    5556{
     57    ASSERT(m_key.type() == "resource");
    5658}
    5759
Note: See TracChangeset for help on using the changeset viewer.