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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/Body.h

Issue 2292763002: [Fetch API] Implement Request.formData and Response.formData. (Closed)
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef Body_h 5 #ifndef Body_h
6 #define Body_h 6 #define Body_h
7 7
8 #include "bindings/core/v8/ActiveScriptWrappable.h" 8 #include "bindings/core/v8/ActiveScriptWrappable.h"
9 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "bindings/core/v8/ScriptValue.h" 10 #include "bindings/core/v8/ScriptValue.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 // ScriptWrappable override. 54 // ScriptWrappable override.
55 bool hasPendingActivity() const override; 55 bool hasPendingActivity() const override;
56 56
57 DEFINE_INLINE_VIRTUAL_TRACE() 57 DEFINE_INLINE_VIRTUAL_TRACE()
58 { 58 {
59 ContextLifecycleObserver::trace(visitor); 59 ContextLifecycleObserver::trace(visitor);
60 } 60 }
61 61
62 private: 62 private:
63 // TODO(e_hakkinen): Fix |mimeType()| to always contain parameters and
64 // remove |contentType()|.
65 virtual String contentType() const = 0;
63 virtual String mimeType() const = 0; 66 virtual String mimeType() const = 0;
64 67
65 // Body consumption algorithms will reject with a TypeError in a number of 68 // Body consumption algorithms will reject with a TypeError in a number of
66 // error conditions. This method wraps those up into one call which returns 69 // error conditions. This method wraps those up into one call which returns
67 // an empty ScriptPromise if the consumption may proceed, and a 70 // an empty ScriptPromise if the consumption may proceed, and a
68 // ScriptPromise rejected with a TypeError if it ought to be blocked. 71 // ScriptPromise rejected with a TypeError if it ought to be blocked.
69 ScriptPromise rejectInvalidConsumption(ScriptState*); 72 ScriptPromise rejectInvalidConsumption(ScriptState*);
70 }; 73 };
71 74
72 } // namespace blink 75 } // namespace blink
73 76
74 #endif // Body_h 77 #endif // Body_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698