| Index: Source/core/fetch/ScriptResource.cpp
|
| diff --git a/Source/core/fetch/ScriptResource.cpp b/Source/core/fetch/ScriptResource.cpp
|
| index 1d12949a3a943235fc14677ff994fe539dc4de81..a2a03affa9d95d66363470d0c002967dad84d0ca 100644
|
| --- a/Source/core/fetch/ScriptResource.cpp
|
| +++ b/Source/core/fetch/ScriptResource.cpp
|
| @@ -27,6 +27,7 @@
|
| #include "config.h"
|
| #include "core/fetch/ScriptResource.h"
|
|
|
| +#include "core/fetch/ResourceClientWalker.h"
|
| #include "platform/MIMETypeRegistry.h"
|
| #include "platform/SharedBuffer.h"
|
| #include "platform/network/HTTPParsers.h"
|
| @@ -48,6 +49,21 @@ ScriptResource::~ScriptResource()
|
| {
|
| }
|
|
|
| +void ScriptResource::didAddClient(ResourceClient* client)
|
| +{
|
| + ASSERT(client->resourceClientType() == ScriptResourceClient::expectedType());
|
| + Resource::didAddClient(client);
|
| +}
|
| +
|
| +void ScriptResource::appendData(const char* data, int length)
|
| +{
|
| + Resource::appendData(data, length);
|
| + ResourceClientWalker<ScriptResourceClient> walker(m_clients);
|
| + while (ScriptResourceClient* client = walker.next()) {
|
| + client->notifyAppendData(this);
|
| + }
|
| +}
|
| +
|
| AtomicString ScriptResource::mimeType() const
|
| {
|
| return extractMIMETypeFromMediaType(m_response.httpHeaderField("Content-Type")).lower();
|
|
|