Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Unified Diff: Source/modules/serviceworkers/Body.h

Issue 562413003: Request construction spec changes to use the 'used' flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698