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

Unified Diff: third_party/WebKit/Source/core/loader/DocumentLoader.h

Issue 1829803002: [WeakMemoryCache] Do not lookup MemoryCache when adding resource to Inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@MemoryCache_MakeWeak2d
Patch Set: Rebase. 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
Index: third_party/WebKit/Source/core/loader/DocumentLoader.h
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.h b/third_party/WebKit/Source/core/loader/DocumentLoader.h
index bd50cda28c1c5f01e8c2e1a5c7072e094c55636c..1469d9fd37f7ab8bf6212a5ab2232924493d22fd 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.h
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.h
@@ -143,6 +143,8 @@ public:
DECLARE_VIRTUAL_TRACE();
+ Resource* mainResource() const { return m_mainResource.get(); }
Nate Chapin 2016/05/12 19:36:53 Instead of exposing this, can we pass the Resource
hiroshige 2016/05/13 08:40:10 Done.
+
protected:
DocumentLoader(LocalFrame*, const ResourceRequest&, const SubstituteData&);

Powered by Google App Engine
This is Rietveld 408576698