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

Side by Side Diff: third_party/WebKit/public/platform/WebURLRequest.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
« no previous file with comments | « third_party/WebKit/Source/platform/network/ResourceRequest.cpp ('k') | no next file » | 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 FetchRequestModeSameOrigin, 117 FetchRequestModeSameOrigin,
118 FetchRequestModeNoCORS, 118 FetchRequestModeNoCORS,
119 FetchRequestModeCORS, 119 FetchRequestModeCORS,
120 FetchRequestModeCORSWithForcedPreflight, 120 FetchRequestModeCORSWithForcedPreflight,
121 FetchRequestModeNavigate 121 FetchRequestModeNavigate
122 }; 122 };
123 123
124 enum FetchCredentialsMode { 124 enum FetchCredentialsMode {
125 FetchCredentialsModeOmit, 125 FetchCredentialsModeOmit,
126 FetchCredentialsModeSameOrigin, 126 FetchCredentialsModeSameOrigin,
127 FetchCredentialsModeInclude 127 FetchCredentialsModeInclude,
128 FetchCredentialsModePassword
128 }; 129 };
129 130
130 enum FetchRedirectMode { 131 enum FetchRedirectMode {
131 FetchRedirectModeFollow, 132 FetchRedirectModeFollow,
132 FetchRedirectModeError, 133 FetchRedirectModeError,
133 FetchRedirectModeManual 134 FetchRedirectModeManual
134 }; 135 };
135 136
136 // Used to report performance metrics timed from the UI action that 137 // Used to report performance metrics timed from the UI action that
137 // triggered them (as opposed to navigation start time used in the 138 // triggered them (as opposed to navigation start time used in the
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // It's not possible to set the referrer header using this method. Use setHT TPReferrer instead. 204 // It's not possible to set the referrer header using this method. Use setHT TPReferrer instead.
204 BLINK_PLATFORM_EXPORT void setHTTPHeaderField(const WebString& name, const W ebString& value); 205 BLINK_PLATFORM_EXPORT void setHTTPHeaderField(const WebString& name, const W ebString& value);
205 BLINK_PLATFORM_EXPORT void setHTTPReferrer(const WebString& referrer, WebRef errerPolicy); 206 BLINK_PLATFORM_EXPORT void setHTTPReferrer(const WebString& referrer, WebRef errerPolicy);
206 BLINK_PLATFORM_EXPORT void addHTTPHeaderField(const WebString& name, const W ebString& value); 207 BLINK_PLATFORM_EXPORT void addHTTPHeaderField(const WebString& name, const W ebString& value);
207 BLINK_PLATFORM_EXPORT void clearHTTPHeaderField(const WebString& name); 208 BLINK_PLATFORM_EXPORT void clearHTTPHeaderField(const WebString& name);
208 BLINK_PLATFORM_EXPORT void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) cons t; 209 BLINK_PLATFORM_EXPORT void visitHTTPHeaderFields(WebHTTPHeaderVisitor*) cons t;
209 210
210 BLINK_PLATFORM_EXPORT WebHTTPBody httpBody() const; 211 BLINK_PLATFORM_EXPORT WebHTTPBody httpBody() const;
211 BLINK_PLATFORM_EXPORT void setHTTPBody(const WebHTTPBody&); 212 BLINK_PLATFORM_EXPORT void setHTTPBody(const WebHTTPBody&);
212 213
214 BLINK_PLATFORM_EXPORT WebHTTPBody attachedCredential() const;
215 BLINK_PLATFORM_EXPORT void setAttachedCredential(const WebHTTPBody&);
216
213 // Controls whether upload progress events are generated when a request 217 // Controls whether upload progress events are generated when a request
214 // has a body. 218 // has a body.
215 BLINK_PLATFORM_EXPORT bool reportUploadProgress() const; 219 BLINK_PLATFORM_EXPORT bool reportUploadProgress() const;
216 BLINK_PLATFORM_EXPORT void setReportUploadProgress(bool); 220 BLINK_PLATFORM_EXPORT void setReportUploadProgress(bool);
217 221
218 // Controls whether actual headers sent and received for request are 222 // Controls whether actual headers sent and received for request are
219 // collected and reported. 223 // collected and reported.
220 BLINK_PLATFORM_EXPORT bool reportRawHeaders() const; 224 BLINK_PLATFORM_EXPORT bool reportRawHeaders() const;
221 BLINK_PLATFORM_EXPORT void setReportRawHeaders(bool); 225 BLINK_PLATFORM_EXPORT void setReportRawHeaders(bool);
222 226
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 protected: 325 protected:
322 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); 326 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*);
323 327
324 private: 328 private:
325 WebURLRequestPrivate* m_private; 329 WebURLRequestPrivate* m_private;
326 }; 330 };
327 331
328 } // namespace blink 332 } // namespace blink
329 333
330 #endif 334 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/network/ResourceRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698