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

Side by Side Diff: Source/modules/fetch/FetchRequestData.h

Issue 1233573002: [Fetch API] Remove DrainingBuffer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/fetch/FetchManager.cpp ('k') | Source/modules/fetch/FetchRequestData.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 FetchRequestData_h 5 #ifndef FetchRequestData_h
6 #define FetchRequestData_h 6 #define FetchRequestData_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 #include "platform/weborigin/KURL.h" 9 #include "platform/weborigin/KURL.h"
10 #include "platform/weborigin/Referrer.h" 10 #include "platform/weborigin/Referrer.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // Call Request::refreshBody() after calling setBuffer(). 89 // Call Request::refreshBody() after calling setBuffer().
90 void setBuffer(BodyStreamBuffer* buffer) { m_buffer = buffer; } 90 void setBuffer(BodyStreamBuffer* buffer) { m_buffer = buffer; }
91 String mimeType() const { return m_mimeType; } 91 String mimeType() const { return m_mimeType; }
92 void setMIMEType(const String& type) { m_mimeType = type; } 92 void setMIMEType(const String& type) { m_mimeType = type; }
93 93
94 DECLARE_TRACE(); 94 DECLARE_TRACE();
95 95
96 private: 96 private:
97 FetchRequestData(); 97 FetchRequestData();
98 98
99 FetchRequestData* cloneExceptBody();
100
99 AtomicString m_method; 101 AtomicString m_method;
100 KURL m_url; 102 KURL m_url;
101 Member<FetchHeaderList> m_headerList; 103 Member<FetchHeaderList> m_headerList;
102 bool m_unsafeRequestFlag; 104 bool m_unsafeRequestFlag;
103 // FIXME: Support m_skipServiceWorkerFlag; 105 // FIXME: Support m_skipServiceWorkerFlag;
104 WebURLRequest::RequestContext m_context; 106 WebURLRequest::RequestContext m_context;
105 RefPtr<SecurityOrigin> m_origin; 107 RefPtr<SecurityOrigin> m_origin;
106 // FIXME: Support m_forceOriginHeaderFlag; 108 // FIXME: Support m_forceOriginHeaderFlag;
107 bool m_sameOriginDataURLFlag; 109 bool m_sameOriginDataURLFlag;
108 Referrer m_referrer; 110 Referrer m_referrer;
109 // FIXME: Support m_authenticationFlag; 111 // FIXME: Support m_authenticationFlag;
110 // FIXME: Support m_synchronousFlag; 112 // FIXME: Support m_synchronousFlag;
111 WebURLRequest::FetchRequestMode m_mode; 113 WebURLRequest::FetchRequestMode m_mode;
112 WebURLRequest::FetchCredentialsMode m_credentials; 114 WebURLRequest::FetchCredentialsMode m_credentials;
113 // FIXME: Support m_useURLCredentialsFlag; 115 // FIXME: Support m_useURLCredentialsFlag;
114 // FIXME: Support m_manualRedirectFlag; 116 // FIXME: Support m_manualRedirectFlag;
115 // FIXME: Support m_redirectCount; 117 // FIXME: Support m_redirectCount;
116 Tainting m_responseTainting; 118 Tainting m_responseTainting;
117 Member<BodyStreamBuffer> m_buffer; 119 Member<BodyStreamBuffer> m_buffer;
118 String m_mimeType; 120 String m_mimeType;
119 }; 121 };
120 122
121 } // namespace blink 123 } // namespace blink
122 124
123 #endif // FetchRequestData_h 125 #endif // FetchRequestData_h
OLDNEW
« no previous file with comments | « Source/modules/fetch/FetchManager.cpp ('k') | Source/modules/fetch/FetchRequestData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698