Chromium Code Reviews| Index: Source/bindings/core/v8/ScriptSourceCode.h |
| diff --git a/Source/bindings/core/v8/ScriptSourceCode.h b/Source/bindings/core/v8/ScriptSourceCode.h |
| index 8cd98fb185be29c814c3ef005bdff0e81a58ad77..463ea913ba4ce92ce6d54a364da3d4b2aab72fd2 100644 |
| --- a/Source/bindings/core/v8/ScriptSourceCode.h |
| +++ b/Source/bindings/core/v8/ScriptSourceCode.h |
| @@ -31,6 +31,7 @@ |
| #ifndef ScriptSourceCode_h |
| #define ScriptSourceCode_h |
| +#include "bindings/core/v8/ScriptStreamer.h" |
| #include "core/fetch/ResourcePtr.h" |
| #include "core/fetch/ScriptResource.h" |
| #include "platform/weborigin/KURL.h" |
| @@ -61,6 +62,14 @@ public: |
| { |
| } |
| + ScriptSourceCode(PassRefPtr<ScriptStreamer> streamer, ScriptResource* cs) |
|
jochen (gone - plz use gerrit)
2014/09/11 12:45:08
what is cs short for?
marja
2014/09/15 17:45:26
Seems to be copy paste from above. I changed it to
|
| + : m_source(cs->script()) |
| + , m_resource(cs) |
| + , m_streamer(streamer) |
| + , m_startPosition(TextPosition::minimumPosition()) |
| + { |
| + } |
| + |
| bool isEmpty() const { return m_source.isEmpty(); } |
| const String& source() const { return m_source; } |
| @@ -77,9 +86,12 @@ public: |
| int startLine() const { return m_startPosition.m_line.oneBasedInt(); } |
| const TextPosition& startPosition() const { return m_startPosition; } |
| + ScriptStreamer* streamer() const { return m_streamer.get(); } |
| + |
| private: |
| String m_source; |
| ResourcePtr<ScriptResource> m_resource; |
| + RefPtr<ScriptStreamer> m_streamer; |
| mutable KURL m_url; |
| TextPosition m_startPosition; |
| }; |