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

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

Issue 2020153002: Move ScriptResourceClient to Oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@onheap-font-resource-client
Patch Set: Created 4 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: 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 8633da978fe3f959ad1efabf25ffd7dc6709e992..b4e661bb8465903d82b511e272ccc2b593bf1d34 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/heap/Handle.h"
#include "platform/text/CompressibleString.h"
namespace blink {
@@ -43,13 +44,15 @@ enum class ScriptIntegrityDisposition {
class FetchRequest;
class ScriptResource;
-class CORE_EXPORT ScriptResourceClient : public ResourceClient {
+class CORE_EXPORT ScriptResourceClient : public GarbageCollectedMixin, public ResourceClient {
public:
~ScriptResourceClient() override {}
static bool isExpectedType(ResourceClient* client) { return client->getResourceClientType() == ScriptType; }
ResourceClientType getResourceClientType() const final { return ScriptType; }
virtual void notifyAppendData(ScriptResource* resource) { }
+
+ DEFINE_INLINE_VIRTUAL_TRACE() {}
};
class CORE_EXPORT ScriptResource final : public TextResource {

Powered by Google App Engine
This is Rietveld 408576698