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

Unified Diff: third_party/WebKit/Source/core/fetch/ScriptResource.h

Issue 1583263002: Experimental CompressibleString UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adopt lazy-initializing way Created 4 years, 11 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/fetch/ScriptResource.h
diff --git a/third_party/WebKit/Source/core/fetch/ScriptResource.h b/third_party/WebKit/Source/core/fetch/ScriptResource.h
index 79eaff54451366e00ffbf6dc6048fe8bde3308d1..c190d9103e3bc8952bb2b7cdea1670cba304fec9 100644
--- a/third_party/WebKit/Source/core/fetch/ScriptResource.h
+++ b/third_party/WebKit/Source/core/fetch/ScriptResource.h
@@ -30,6 +30,7 @@
#include "core/fetch/IntegrityMetadata.h"
#include "core/fetch/ResourceClient.h"
#include "core/fetch/TextResource.h"
+#include "platform/text/CompressibleString.h"
namespace blink {
@@ -62,7 +63,7 @@ public:
void destroyDecodedDataForFailedRevalidation() override;
- const String& script();
+ const CompressibleString& script();
AtomicString mimeType() const;
@@ -89,7 +90,7 @@ private:
bool m_integrityChecked;
IntegrityMetadataSet m_integrityMetadata;
- AtomicString m_script;
+ CompressibleString m_script;
};
DEFINE_RESOURCE_TYPE_CASTS(Script);
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptLoader.cpp ('k') | third_party/WebKit/Source/core/fetch/ScriptResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698