| Index: third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp b/third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp
|
| index eb199c6a46d867ec4b71c6fed3dfc3ee14dc95ee..9c474c97074aa4c12656254af9705120a0c56d8e 100644
|
| --- a/third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp
|
| @@ -29,7 +29,6 @@
|
| #include "core/inspector/NetworkResourcesData.h"
|
|
|
| #include "core/dom/DOMImplementation.h"
|
| -#include "core/fetch/MemoryCache.h"
|
| #include "core/fetch/Resource.h"
|
| #include "platform/SharedBuffer.h"
|
| #include "platform/network/ResourceResponse.h"
|
| @@ -116,6 +115,11 @@ unsigned NetworkResourcesData::ResourceData::evictContent()
|
| return removeContent();
|
| }
|
|
|
| +void NetworkResourcesData::ResourceData::setResource(Resource* cachedResource)
|
| +{
|
| + m_cachedResource = cachedResource;
|
| +}
|
| +
|
| size_t NetworkResourcesData::ResourceData::dataLength() const
|
| {
|
| return m_dataBuffer ? m_dataBuffer->size() : 0;
|
| @@ -259,7 +263,6 @@ void NetworkResourcesData::maybeDecodeDataToContent(const String& requestId)
|
|
|
| void NetworkResourcesData::addResource(const String& requestId, Resource* cachedResource)
|
| {
|
| - ASSERT(memoryCache()->contains(cachedResource));
|
| ResourceData* resourceData = resourceDataForRequestId(requestId);
|
| if (!resourceData)
|
| return;
|
|
|