Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: third_party/WebKit/Source/core/inspector/NetworkResourcesData.cpp

Issue 1807323002: [WeakMemoryCache 1a] Make Reference from Inspector to Resource weak, remove removedFromMemoryCache() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove some comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/inspector/NetworkResourcesData.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « third_party/WebKit/Source/core/inspector/NetworkResourcesData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698