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

Unified Diff: Source/core/loader/cache/CachedResource.h

Issue 14672042: Prepare to add more initiator info to CachedResource(Request) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Restore performance reporting logic. Created 7 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: Source/core/loader/cache/CachedResource.h
diff --git a/Source/core/loader/cache/CachedResource.h b/Source/core/loader/cache/CachedResource.h
index 6473ec448426e3201e2e01f19983775cec636cda..90741d9e4e088be235938372233195cf857adbfe 100644
--- a/Source/core/loader/cache/CachedResource.h
+++ b/Source/core/loader/cache/CachedResource.h
@@ -27,6 +27,7 @@
#include "core/loader/FrameLoaderTypes.h"
#include "core/loader/ResourceLoaderOptions.h"
#include "core/loader/cache/CachePolicy.h"
+#include "core/loader/cache/CachedResourceInitiatorInfo.h"
#include "core/platform/PurgePriority.h"
#include "core/platform/Timer.h"
#include "core/platform/network/ResourceError.h"
@@ -250,6 +251,9 @@ public:
virtual bool canReuse(const ResourceRequest&) const { return true; }
+ const CachedResourceInitiatorInfo& initiatorInfo() const { return m_initiatorInfo; }
+ void setInitiatorInfo(const CachedResourceInitiatorInfo& initiatorInfo) { m_initiatorInfo = initiatorInfo; }
+
protected:
virtual void checkNotify();
virtual void finishOnePart();
@@ -354,6 +358,8 @@ private:
// These handles will need to be updated to point to the m_resourceToRevalidate in case we get 304 response.
HashSet<CachedResourceHandleBase*> m_handlesToRevalidate;
+
+ CachedResourceInitiatorInfo m_initiatorInfo;
};
}

Powered by Google App Engine
This is Rietveld 408576698