Chromium Code Reviews| Index: Source/modules/serviceworkers/Body.h |
| diff --git a/Source/modules/serviceworkers/Body.h b/Source/modules/serviceworkers/Body.h |
| index dbaa20a7f5ece170a43562a3587dc4ea33919b61..546f5d03623cec90b07b77ada98b60320a2041c6 100644 |
| --- a/Source/modules/serviceworkers/Body.h |
| +++ b/Source/modules/serviceworkers/Body.h |
| @@ -18,6 +18,7 @@ |
| namespace blink { |
| +class BodyStreamBuffer; |
| class ScriptState; |
| class Body |
| @@ -50,6 +51,8 @@ public: |
| void setBodyUsed(); |
| bool bodyUsed() const; |
| + bool streamAccessed() const; |
| + |
| // ActiveDOMObject override. |
| virtual void stop() override; |
| virtual bool hasPendingActivity() const override; |
| @@ -62,9 +65,12 @@ protected: |
| private: |
| class ReadableStreamSource; |
| + class BlobHandleResolver; |
| + |
| void pullSource(); |
| void readAllFromStream(ScriptState*); |
| ScriptPromise readAsync(ScriptState*, ResponseType); |
| + void readAsyncFromBlob(PassRefPtr<BlobDataHandle>); |
| void resolveJSON(const String&); |
| // FileReaderLoaderClient functions. |
| @@ -73,7 +79,10 @@ private: |
| virtual void didFinishLoading() override; |
| virtual void didFail(FileError::ErrorCode) override; |
| - virtual PassRefPtr<BlobDataHandle> blobDataHandle() = 0; |
| + void didBlobHandleResolveError(PassRefPtrWillBeRawPtr<DOMException>); |
| + |
| + virtual PassRefPtr<BlobDataHandle> blobDataHandle(bool /* internal */) const = 0; |
|
yhirano
2014/12/11 03:55:47
What does internal mean?
horo
2014/12/11 05:43:08
I wanted to use this flag to access the internal r
|
| + virtual BodyStreamBuffer* buffer(bool /* internal */) const = 0; |
|
yhirano
2014/12/11 03:55:47
ditto
|
| void didFinishLoadingViaStream(DOMArrayBuffer*); |