Chromium Code Reviews| Index: Source/modules/serviceworkers/Body.h |
| diff --git a/Source/modules/serviceworkers/Body.h b/Source/modules/serviceworkers/Body.h |
| index 99072c95adf9ae6f24953bfd9bc6b91dfb492bb4..a1c4fe0a6aca85ee3baa708e90acb65e5f13cb1f 100644 |
| --- a/Source/modules/serviceworkers/Body.h |
| +++ b/Source/modules/serviceworkers/Body.h |
| @@ -50,6 +50,11 @@ public: |
| virtual void trace(Visitor*) { } |
| +protected: |
| + // Sets the bodyUsed flag to true. This signifies that the contents of the |
| + // body have been consumed and cannot be accessed again. |
| + void setUsed(); |
|
horo
2014/09/12 04:55:56
setBodyUsed()
dmurph
2014/09/12 18:40:07
Done.
|
| + |
| private: |
| ScriptPromise readAsync(ScriptState*, ResponseType); |
| void resolveJSON(); |