Chromium Code Reviews| 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 86dfc6bc4b6bc64f012f151a74cace459a527fd2..f421e1aaee3185c9cdbef8134b40a099949aeb5d 100644 |
| --- a/third_party/WebKit/Source/core/fetch/ScriptResource.h |
| +++ b/third_party/WebKit/Source/core/fetch/ScriptResource.h |
| @@ -29,6 +29,7 @@ |
| #include "core/CoreExport.h" |
| #include "core/fetch/ResourceClient.h" |
| #include "core/fetch/TextResource.h" |
| +#include "wtf/text/CompressableString.h" |
| namespace blink { |
| @@ -57,7 +58,7 @@ public: |
| void didAddClient(ResourceClient*) override; |
| void appendData(const char*, unsigned) override; |
| - const String& script(); |
| + RefPtrWillBeRawPtr<CompressableString> script(); |
|
esprehn
2015/10/24 03:59:25
not a ref ptr
|
| AtomicString mimeType() const; |
| @@ -84,7 +85,7 @@ private: |
| bool m_integrityChecked; |
| String m_integrityMetadata; |
| - AtomicString m_script; |
| + RefPtrWillBeMember<CompressableString> m_script; |
|
esprehn
2015/10/24 03:59:25
By making these not atomic strings you lose the de
|
| }; |
| DEFINE_RESOURCE_TYPE_CASTS(Script); |