| Index: Source/modules/serviceworkers/Body.h
|
| diff --git a/Source/modules/serviceworkers/Body.h b/Source/modules/serviceworkers/Body.h
|
| index 6aa5d1c39fcc6a74998ddb962447c16312105007..d5b03b540e3383b9cdfb084ffe578e1cb453fbf4 100644
|
| --- a/Source/modules/serviceworkers/Body.h
|
| +++ b/Source/modules/serviceworkers/Body.h
|
| @@ -43,6 +43,9 @@ public:
|
| ScriptPromise json(ScriptState*);
|
| ScriptPromise text(ScriptState*);
|
|
|
| + // Sets the bodyUsed flag to true. This signifies that the contents of the
|
| + // body have been consumed and cannot be accessed again.
|
| + void setBodyUsed();
|
| bool bodyUsed() const;
|
|
|
| // ActiveDOMObject override.
|
| @@ -55,10 +58,6 @@ protected:
|
| // Copy constructor for clone() implementations
|
| explicit Body(const Body&);
|
|
|
| - // Sets the bodyUsed flag to true. This signifies that the contents of the
|
| - // body have been consumed and cannot be accessed again.
|
| - void setBodyUsed();
|
| -
|
| private:
|
| ScriptPromise readAsync(ScriptState*, ResponseType);
|
| void resolveJSON();
|
|
|