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

Side by Side Diff: Source/platform/network/ResourceRequest.h

Issue 1311923004: Rename FormData/FormDataBuilder to EncodedFormData/FormDataEncoder respectively. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update comments Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/network/FormDataTest.cpp ('k') | Source/platform/network/ResourceRequest.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 /* 1 /*
2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 10 matching lines...) Expand all
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #ifndef ResourceRequest_h 28 #ifndef ResourceRequest_h
29 #define ResourceRequest_h 29 #define ResourceRequest_h
30 30
31 #include "platform/network/FormData.h" 31 #include "platform/network/EncodedFormData.h"
32 #include "platform/network/HTTPHeaderMap.h" 32 #include "platform/network/HTTPHeaderMap.h"
33 #include "platform/network/HTTPParsers.h" 33 #include "platform/network/HTTPParsers.h"
34 #include "platform/network/ResourceLoadPriority.h" 34 #include "platform/network/ResourceLoadPriority.h"
35 #include "platform/weborigin/KURL.h" 35 #include "platform/weborigin/KURL.h"
36 #include "platform/weborigin/Referrer.h" 36 #include "platform/weborigin/Referrer.h"
37 #include "platform/weborigin/SecurityOrigin.h" 37 #include "platform/weborigin/SecurityOrigin.h"
38 #include "public/platform/WebURLRequest.h" 38 #include "public/platform/WebURLRequest.h"
39 #include "wtf/OwnPtr.h" 39 #include "wtf/OwnPtr.h"
40 40
41 namespace blink { 41 namespace blink {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 void clearHTTPOrigin(); 139 void clearHTTPOrigin();
140 void addHTTPOriginIfNeeded(const AtomicString& origin); 140 void addHTTPOriginIfNeeded(const AtomicString& origin);
141 141
142 const AtomicString& httpUserAgent() const { return httpHeaderField("User-Age nt"); } 142 const AtomicString& httpUserAgent() const { return httpHeaderField("User-Age nt"); }
143 void setHTTPUserAgent(const AtomicString& httpUserAgent) { setHTTPHeaderFiel d("User-Agent", httpUserAgent); } 143 void setHTTPUserAgent(const AtomicString& httpUserAgent) { setHTTPHeaderFiel d("User-Agent", httpUserAgent); }
144 void clearHTTPUserAgent(); 144 void clearHTTPUserAgent();
145 145
146 const AtomicString& httpAccept() const { return httpHeaderField("Accept"); } 146 const AtomicString& httpAccept() const { return httpHeaderField("Accept"); }
147 void setHTTPAccept(const AtomicString& httpAccept) { setHTTPHeaderField("Acc ept", httpAccept); } 147 void setHTTPAccept(const AtomicString& httpAccept) { setHTTPHeaderField("Acc ept", httpAccept); }
148 148
149 FormData* httpBody() const; 149 EncodedFormData* httpBody() const;
150 void setHTTPBody(PassRefPtr<FormData> httpBody); 150 void setHTTPBody(PassRefPtr<EncodedFormData>);
151 151
152 bool allowStoredCredentials() const; 152 bool allowStoredCredentials() const;
153 void setAllowStoredCredentials(bool allowCredentials); 153 void setAllowStoredCredentials(bool allowCredentials);
154 154
155 ResourceLoadPriority priority() const; 155 ResourceLoadPriority priority() const;
156 void setPriority(ResourceLoadPriority, int intraPriorityValue = 0); 156 void setPriority(ResourceLoadPriority, int intraPriorityValue = 0);
157 157
158 bool isConditional() const; 158 bool isConditional() const;
159 159
160 // Whether the associated ResourceHandleClient needs to be notified of 160 // Whether the associated ResourceHandleClient needs to be notified of
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 247
248 const CacheControlHeader& cacheControlHeader() const; 248 const CacheControlHeader& cacheControlHeader() const;
249 249
250 KURL m_url; 250 KURL m_url;
251 ResourceRequestCachePolicy m_cachePolicy; 251 ResourceRequestCachePolicy m_cachePolicy;
252 double m_timeoutInterval; // 0 is a magic value for platform default on plat forms that have one. 252 double m_timeoutInterval; // 0 is a magic value for platform default on plat forms that have one.
253 KURL m_firstPartyForCookies; 253 KURL m_firstPartyForCookies;
254 RefPtr<SecurityOrigin> m_requestorOrigin; 254 RefPtr<SecurityOrigin> m_requestorOrigin;
255 AtomicString m_httpMethod; 255 AtomicString m_httpMethod;
256 HTTPHeaderMap m_httpHeaderFields; 256 HTTPHeaderMap m_httpHeaderFields;
257 RefPtr<FormData> m_httpBody; 257 RefPtr<EncodedFormData> m_httpBody;
258 bool m_allowStoredCredentials : 1; 258 bool m_allowStoredCredentials : 1;
259 bool m_reportUploadProgress : 1; 259 bool m_reportUploadProgress : 1;
260 bool m_reportRawHeaders : 1; 260 bool m_reportRawHeaders : 1;
261 bool m_hasUserGesture : 1; 261 bool m_hasUserGesture : 1;
262 bool m_downloadToFile : 1; 262 bool m_downloadToFile : 1;
263 bool m_useStreamOnResponse : 1; 263 bool m_useStreamOnResponse : 1;
264 bool m_skipServiceWorker : 1; 264 bool m_skipServiceWorker : 1;
265 bool m_shouldResetAppCache : 1; 265 bool m_shouldResetAppCache : 1;
266 ResourceLoadPriority m_priority; 266 ResourceLoadPriority m_priority;
267 int m_intraPriorityValue; 267 int m_intraPriorityValue;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 CrossThreadResourceRequestData() { } 299 CrossThreadResourceRequestData() { }
300 KURL m_url; 300 KURL m_url;
301 301
302 ResourceRequestCachePolicy m_cachePolicy; 302 ResourceRequestCachePolicy m_cachePolicy;
303 double m_timeoutInterval; 303 double m_timeoutInterval;
304 KURL m_firstPartyForCookies; 304 KURL m_firstPartyForCookies;
305 RefPtr<SecurityOrigin> m_requestorOrigin; 305 RefPtr<SecurityOrigin> m_requestorOrigin;
306 306
307 String m_httpMethod; 307 String m_httpMethod;
308 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; 308 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders;
309 RefPtr<FormData> m_httpBody; 309 RefPtr<EncodedFormData> m_httpBody;
310 bool m_allowStoredCredentials; 310 bool m_allowStoredCredentials;
311 bool m_reportUploadProgress; 311 bool m_reportUploadProgress;
312 bool m_hasUserGesture; 312 bool m_hasUserGesture;
313 bool m_downloadToFile; 313 bool m_downloadToFile;
314 bool m_skipServiceWorker; 314 bool m_skipServiceWorker;
315 bool m_useStreamOnResponse; 315 bool m_useStreamOnResponse;
316 bool m_shouldResetAppCache; 316 bool m_shouldResetAppCache;
317 ResourceLoadPriority m_priority; 317 ResourceLoadPriority m_priority;
318 int m_intraPriorityValue; 318 int m_intraPriorityValue;
319 int m_requestorID; 319 int m_requestorID;
320 int m_requestorProcessID; 320 int m_requestorProcessID;
321 int m_appCacheHostID; 321 int m_appCacheHostID;
322 WebURLRequest::RequestContext m_requestContext; 322 WebURLRequest::RequestContext m_requestContext;
323 WebURLRequest::FrameType m_frameType; 323 WebURLRequest::FrameType m_frameType;
324 WebURLRequest::FetchRequestMode m_fetchRequestMode; 324 WebURLRequest::FetchRequestMode m_fetchRequestMode;
325 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode; 325 WebURLRequest::FetchCredentialsMode m_fetchCredentialsMode;
326 WebURLRequest::FetchRedirectMode m_fetchRedirectMode; 326 WebURLRequest::FetchRedirectMode m_fetchRedirectMode;
327 ReferrerPolicy m_referrerPolicy; 327 ReferrerPolicy m_referrerPolicy;
328 bool m_didSetHTTPReferrer; 328 bool m_didSetHTTPReferrer;
329 bool m_checkForBrowserSideNavigation; 329 bool m_checkForBrowserSideNavigation;
330 double m_uiStartTime; 330 double m_uiStartTime;
331 bool m_originatesFromReservedIPRange; 331 bool m_originatesFromReservedIPRange;
332 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; 332 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy;
333 bool m_followedRedirect; 333 bool m_followedRedirect;
334 }; 334 };
335 335
336 } // namespace blink 336 } // namespace blink
337 337
338 #endif // ResourceRequest_h 338 #endif // ResourceRequest_h
OLDNEW
« no previous file with comments | « Source/platform/network/FormDataTest.cpp ('k') | Source/platform/network/ResourceRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698