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

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

Issue 1844053003: CREDENTIAL: Rework the integration with Fetch (1/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clear attachedcredentials Created 4 years, 8 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 /* 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 const AtomicString& httpUserAgent() const { return httpHeaderField(HTTPNames ::User_Agent); } 147 const AtomicString& httpUserAgent() const { return httpHeaderField(HTTPNames ::User_Agent); }
148 void setHTTPUserAgent(const AtomicString& httpUserAgent) { setHTTPHeaderFiel d(HTTPNames::User_Agent, httpUserAgent); } 148 void setHTTPUserAgent(const AtomicString& httpUserAgent) { setHTTPHeaderFiel d(HTTPNames::User_Agent, httpUserAgent); }
149 void clearHTTPUserAgent(); 149 void clearHTTPUserAgent();
150 150
151 const AtomicString& httpAccept() const { return httpHeaderField(HTTPNames::A ccept); } 151 const AtomicString& httpAccept() const { return httpHeaderField(HTTPNames::A ccept); }
152 void setHTTPAccept(const AtomicString& httpAccept) { setHTTPHeaderField(HTTP Names::Accept, httpAccept); } 152 void setHTTPAccept(const AtomicString& httpAccept) { setHTTPHeaderField(HTTP Names::Accept, httpAccept); }
153 153
154 EncodedFormData* httpBody() const; 154 EncodedFormData* httpBody() const;
155 void setHTTPBody(PassRefPtr<EncodedFormData>); 155 void setHTTPBody(PassRefPtr<EncodedFormData>);
156 156
157 EncodedFormData* attachedCredential() const;
158 void setAttachedCredential(PassRefPtr<EncodedFormData>);
159
157 bool allowStoredCredentials() const; 160 bool allowStoredCredentials() const;
158 void setAllowStoredCredentials(bool allowCredentials); 161 void setAllowStoredCredentials(bool allowCredentials);
159 162
160 ResourceLoadPriority priority() const; 163 ResourceLoadPriority priority() const;
161 void setPriority(ResourceLoadPriority, int intraPriorityValue = 0); 164 void setPriority(ResourceLoadPriority, int intraPriorityValue = 0);
162 165
163 bool isConditional() const; 166 bool isConditional() const;
164 167
165 // Whether the associated ResourceHandleClient needs to be notified of 168 // Whether the associated ResourceHandleClient needs to be notified of
166 // upload progress made for that resource. 169 // upload progress made for that resource.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 const CacheControlHeader& cacheControlHeader() const; 258 const CacheControlHeader& cacheControlHeader() const;
256 259
257 KURL m_url; 260 KURL m_url;
258 ResourceRequestCachePolicy m_cachePolicy; 261 ResourceRequestCachePolicy m_cachePolicy;
259 double m_timeoutInterval; // 0 is a magic value for platform default on plat forms that have one. 262 double m_timeoutInterval; // 0 is a magic value for platform default on plat forms that have one.
260 KURL m_firstPartyForCookies; 263 KURL m_firstPartyForCookies;
261 RefPtr<SecurityOrigin> m_requestorOrigin; 264 RefPtr<SecurityOrigin> m_requestorOrigin;
262 AtomicString m_httpMethod; 265 AtomicString m_httpMethod;
263 HTTPHeaderMap m_httpHeaderFields; 266 HTTPHeaderMap m_httpHeaderFields;
264 RefPtr<EncodedFormData> m_httpBody; 267 RefPtr<EncodedFormData> m_httpBody;
268 RefPtr<EncodedFormData> m_attachedCredential;
265 bool m_allowStoredCredentials : 1; 269 bool m_allowStoredCredentials : 1;
266 bool m_reportUploadProgress : 1; 270 bool m_reportUploadProgress : 1;
267 bool m_reportRawHeaders : 1; 271 bool m_reportRawHeaders : 1;
268 bool m_hasUserGesture : 1; 272 bool m_hasUserGesture : 1;
269 bool m_downloadToFile : 1; 273 bool m_downloadToFile : 1;
270 bool m_useStreamOnResponse : 1; 274 bool m_useStreamOnResponse : 1;
271 bool m_skipServiceWorker : 1; 275 bool m_skipServiceWorker : 1;
272 bool m_shouldResetAppCache : 1; 276 bool m_shouldResetAppCache : 1;
273 ResourceLoadPriority m_priority; 277 ResourceLoadPriority m_priority;
274 int m_intraPriorityValue; 278 int m_intraPriorityValue;
(...skipping 28 matching lines...) Expand all
303 KURL m_url; 307 KURL m_url;
304 308
305 ResourceRequestCachePolicy m_cachePolicy; 309 ResourceRequestCachePolicy m_cachePolicy;
306 double m_timeoutInterval; 310 double m_timeoutInterval;
307 KURL m_firstPartyForCookies; 311 KURL m_firstPartyForCookies;
308 RefPtr<SecurityOrigin> m_requestorOrigin; 312 RefPtr<SecurityOrigin> m_requestorOrigin;
309 313
310 String m_httpMethod; 314 String m_httpMethod;
311 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders; 315 OwnPtr<CrossThreadHTTPHeaderMapData> m_httpHeaders;
312 RefPtr<EncodedFormData> m_httpBody; 316 RefPtr<EncodedFormData> m_httpBody;
317 RefPtr<EncodedFormData> m_attachedCredential;
313 bool m_allowStoredCredentials; 318 bool m_allowStoredCredentials;
314 bool m_reportUploadProgress; 319 bool m_reportUploadProgress;
315 bool m_hasUserGesture; 320 bool m_hasUserGesture;
316 bool m_downloadToFile; 321 bool m_downloadToFile;
317 bool m_skipServiceWorker; 322 bool m_skipServiceWorker;
318 bool m_useStreamOnResponse; 323 bool m_useStreamOnResponse;
319 bool m_shouldResetAppCache; 324 bool m_shouldResetAppCache;
320 ResourceLoadPriority m_priority; 325 ResourceLoadPriority m_priority;
321 int m_intraPriorityValue; 326 int m_intraPriorityValue;
322 int m_requestorID; 327 int m_requestorID;
(...skipping 10 matching lines...) Expand all
333 bool m_checkForBrowserSideNavigation; 338 bool m_checkForBrowserSideNavigation;
334 double m_uiStartTime; 339 double m_uiStartTime;
335 bool m_isExternalRequest; 340 bool m_isExternalRequest;
336 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy; 341 InputToLoadPerfMetricReportPolicy m_inputPerfMetricReportPolicy;
337 bool m_followedRedirect; 342 bool m_followedRedirect;
338 }; 343 };
339 344
340 } // namespace blink 345 } // namespace blink
341 346
342 #endif // ResourceRequest_h 347 #endif // ResourceRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698