| Index: Source/core/inspector/NetworkResourcesData.h
|
| diff --git a/Source/core/inspector/NetworkResourcesData.h b/Source/core/inspector/NetworkResourcesData.h
|
| index 3ed6f705b8c7cd546cff7fd1742c60f9402376a4..0b78ed8c3379c0e272c7ede759f11babb13372d6 100644
|
| --- a/Source/core/inspector/NetworkResourcesData.h
|
| +++ b/Source/core/inspector/NetworkResourcesData.h
|
| @@ -30,6 +30,7 @@
|
| #define NetworkResourcesData_h
|
|
|
| #include "core/fetch/TextResourceDecoder.h"
|
| +#include "core/fileapi/Blob.h"
|
| #include "core/inspector/InspectorPageAgent.h"
|
| #include "core/platform/network/HTTPHeaderMap.h"
|
| #include "weborigin/KURL.h"
|
| @@ -94,6 +95,12 @@ public:
|
|
|
| bool base64Encoded() const { return m_base64Encoded; }
|
|
|
| + bool hasBlob() const { return m_blob; }
|
| + PassRefPtr<Blob> blob() const { return m_blob; }
|
| + void setBlob(PassRefPtr<Blob>, const String& textEncodingName);
|
| +
|
| + String blobTextEncodingName() const { return m_blobTextEncodingName; }
|
| +
|
| unsigned removeContent();
|
| bool isContentEvicted() const { return m_isContentEvicted; }
|
| unsigned evictContent();
|
| @@ -130,6 +137,8 @@ public:
|
| String m_frameId;
|
| String m_url;
|
| String m_content;
|
| + RefPtr<Blob> m_blob;
|
| + String m_blobTextEncodingName;
|
| RefPtr<XHRReplayData> m_xhrReplayData;
|
| bool m_base64Encoded;
|
| RefPtr<SharedBuffer> m_dataBuffer;
|
| @@ -153,6 +162,7 @@ public:
|
| void setResourceType(const String& requestId, InspectorPageAgent::ResourceType);
|
| InspectorPageAgent::ResourceType resourceType(const String& requestId);
|
| void setResourceContent(const String& requestId, const String& content, bool base64Encoded = false);
|
| + void setResourceBlob(const String& requestId, PassRefPtr<Blob>, const String& textEncodingName);
|
| void maybeAddResourceData(const String& requestId, const char* data, size_t dataLength);
|
| void maybeDecodeDataToContent(const String& requestId);
|
| void addResource(const String& requestId, Resource*);
|
|
|