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

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

Issue 368283002: Stream scripts to V8 as they load - Blink side. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed untrue assert Created 6 years, 3 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/fetch/ResourceClient.h ('k') | Source/core/fetch/ScriptResource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ScriptResource.h
diff --git a/Source/core/fetch/ScriptResource.h b/Source/core/fetch/ScriptResource.h
index b8f69ff8e808fd030a2f80e22c7fb0a612f77df6..351ece2f53d58c4909dcb26dfb02a9fe72ca7ed6 100644
--- a/Source/core/fetch/ScriptResource.h
+++ b/Source/core/fetch/ScriptResource.h
@@ -26,17 +26,32 @@
#ifndef ScriptResource_h
#define ScriptResource_h
+#include "core/fetch/ResourceClient.h"
#include "core/fetch/TextResource.h"
namespace blink {
+class ScriptResource;
+
+class ScriptResourceClient : public ResourceClient {
+public:
+ virtual ~ScriptResourceClient() { }
+ static ResourceClientType expectedType() { return ScriptType; }
+ virtual ResourceClientType resourceClientType() const OVERRIDE FINAL { return expectedType(); }
+
+ virtual void notifyAppendData(ScriptResource* resource) { }
+};
+
class ScriptResource FINAL : public TextResource {
public:
- typedef ResourceClient ClientType;
+ typedef ScriptResourceClient ClientType;
ScriptResource(const ResourceRequest&, const String& charset);
virtual ~ScriptResource();
+ virtual void didAddClient(ResourceClient*) OVERRIDE;
+ virtual void appendData(const char*, int) OVERRIDE;
+
const String& script();
AtomicString mimeType() const;
« no previous file with comments | « Source/core/fetch/ResourceClient.h ('k') | Source/core/fetch/ScriptResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698