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

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

Issue 14672042: Prepare to add more initiator info to CachedResource(Request) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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
« no previous file with comments | « Source/core/loader/TextTrackLoader.cpp ('k') | Source/core/loader/cache/CachedResourceLoader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/cache/CachedResourceInitiatorInfo.h
diff --git a/Source/core/loader/cache/CachedResourceRequestInitiators.cpp b/Source/core/loader/cache/CachedResourceInitiatorInfo.h
similarity index 77%
copy from Source/core/loader/cache/CachedResourceRequestInitiators.cpp
copy to Source/core/loader/cache/CachedResourceInitiatorInfo.h
index 1faa8f8cf95cff27a4af803ac583ce30dc93c35c..cbca2e7b21ac7a3f2faf50aa855266625fd18ff7 100644
--- a/Source/core/loader/cache/CachedResourceRequestInitiators.cpp
+++ b/Source/core/loader/cache/CachedResourceInitiatorInfo.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2012 Google, Inc. All rights reserved.
+ * Copyright (C) 2013 Google, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -23,16 +23,24 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "config.h"
-#include "core/loader/cache/CachedResourceRequestInitiators.h"
+#ifndef CachedResourceInitiatorInfo_h
+#define CachedResourceInitiatorInfo_h
+
+#include "wtf/text/AtomicString.h"
namespace WebCore {
-CachedResourceRequestInitiators::CachedResourceRequestInitiators()
- : css("css", AtomicString::ConstructFromLiteral)
- , icon("icon", AtomicString::ConstructFromLiteral)
- , xmlhttprequest("xmlhttprequest", AtomicString::ConstructFromLiteral)
-{
-}
+struct CachedResourceInitiatorInfo {
+ CachedResourceInitiatorInfo()
+ : name()
+ , startTime(0.0)
+ {
+ }
+
+ AtomicString name;
+ double startTime;
+};
} // namespace WebCore
+
+#endif
« no previous file with comments | « Source/core/loader/TextTrackLoader.cpp ('k') | Source/core/loader/cache/CachedResourceLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698