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

Unified Diff: Source/core/loader/FrameLoader.cpp

Issue 267393003: DevTools: Load document (html) content from disk cache in page agent enabling. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | « Source/core/loader/FrameLoader.h ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/FrameLoader.cpp
diff --git a/Source/core/loader/FrameLoader.cpp b/Source/core/loader/FrameLoader.cpp
index 3289609ec2743a3e464e4aaaa443079e5c06cc5e..8743e1b748aafbe73df9a700cbd4ed921322f517 100644
--- a/Source/core/loader/FrameLoader.cpp
+++ b/Source/core/loader/FrameLoader.cpp
@@ -1059,6 +1059,14 @@ void FrameLoader::restoreScrollPositionAndViewState()
}
}
+bool FrameLoader::requestFromHistoryForInspector(ResourceRequestCachePolicy cachePolicy, ResourceRequest* request)
+{
+ if (!m_currentItem)
+ return false;
+ *request = requestFromHistoryItem(m_currentItem.get(), cachePolicy);
+ return true;
+}
+
void FrameLoader::detachChildren()
{
typedef Vector<RefPtr<LocalFrame> > FrameVector;
« no previous file with comments | « Source/core/loader/FrameLoader.h ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698