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

Side by Side Diff: public/platform/WebURLRequest.h

Issue 1265133002: [1/3 blink] Support redirect option of Request and "opaqueredirect" response type. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase 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
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 FetchRequestModeCORS, 116 FetchRequestModeCORS,
117 FetchRequestModeCORSWithForcedPreflight 117 FetchRequestModeCORSWithForcedPreflight
118 }; 118 };
119 119
120 enum FetchCredentialsMode { 120 enum FetchCredentialsMode {
121 FetchCredentialsModeOmit, 121 FetchCredentialsModeOmit,
122 FetchCredentialsModeSameOrigin, 122 FetchCredentialsModeSameOrigin,
123 FetchCredentialsModeInclude 123 FetchCredentialsModeInclude
124 }; 124 };
125 125
126 enum FetchRedirectMode {
127 FetchRedirectModeFollow,
128 FetchRedirectModeError,
129 FetchRedirectModeManual
130 };
131
126 // Used to report performance metrics timed from the UI action that 132 // Used to report performance metrics timed from the UI action that
127 // triggered them (as opposed to navigation start time used in the 133 // triggered them (as opposed to navigation start time used in the
128 // Navigation Timing API). 134 // Navigation Timing API).
129 enum InputToLoadPerfMetricReportPolicy { 135 enum InputToLoadPerfMetricReportPolicy {
130 NoReport, // Don't report metrics for this WebURLRequest. 136 NoReport, // Don't report metrics for this WebURLRequest.
131 ReportLink, // Report metrics with UI action link clicked. 137 ReportLink, // Report metrics with UI action link clicked.
132 ReportIntent, // Report metrics with UI action displayed intent. 138 ReportIntent, // Report metrics with UI action displayed intent.
133 }; 139 };
134 140
135 class ExtraData { 141 class ExtraData {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 BLINK_PLATFORM_EXPORT void setShouldResetAppCache(bool); 257 BLINK_PLATFORM_EXPORT void setShouldResetAppCache(bool);
252 258
253 // The request mode which will be passed to the ServiceWorker. 259 // The request mode which will be passed to the ServiceWorker.
254 BLINK_PLATFORM_EXPORT FetchRequestMode fetchRequestMode() const; 260 BLINK_PLATFORM_EXPORT FetchRequestMode fetchRequestMode() const;
255 BLINK_PLATFORM_EXPORT void setFetchRequestMode(FetchRequestMode); 261 BLINK_PLATFORM_EXPORT void setFetchRequestMode(FetchRequestMode);
256 262
257 // The credentials mode which will be passed to the ServiceWorker. 263 // The credentials mode which will be passed to the ServiceWorker.
258 BLINK_PLATFORM_EXPORT FetchCredentialsMode fetchCredentialsMode() const; 264 BLINK_PLATFORM_EXPORT FetchCredentialsMode fetchCredentialsMode() const;
259 BLINK_PLATFORM_EXPORT void setFetchCredentialsMode(FetchCredentialsMode); 265 BLINK_PLATFORM_EXPORT void setFetchCredentialsMode(FetchCredentialsMode);
260 266
267 // The redirect mode which is used in Fetch API.
268 BLINK_PLATFORM_EXPORT FetchRedirectMode fetchRedirectMode() const;
269 BLINK_PLATFORM_EXPORT void setFetchRedirectMode(FetchRedirectMode);
270
261 // Extra data associated with the underlying resource request. Resource 271 // Extra data associated with the underlying resource request. Resource
262 // requests can be copied. If non-null, each copy of a resource requests 272 // requests can be copied. If non-null, each copy of a resource requests
263 // holds a pointer to the extra data, and the extra data pointer will be 273 // holds a pointer to the extra data, and the extra data pointer will be
264 // deleted when the last resource request is destroyed. Setting the extra 274 // deleted when the last resource request is destroyed. Setting the extra
265 // data pointer will cause the underlying resource request to be 275 // data pointer will cause the underlying resource request to be
266 // dissociated from any existing non-null extra data pointer. 276 // dissociated from any existing non-null extra data pointer.
267 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; 277 BLINK_PLATFORM_EXPORT ExtraData* extraData() const;
268 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); 278 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*);
269 279
270 BLINK_PLATFORM_EXPORT Priority priority() const; 280 BLINK_PLATFORM_EXPORT Priority priority() const;
(...skipping 27 matching lines...) Expand all
298 protected: 308 protected:
299 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*); 309 BLINK_PLATFORM_EXPORT void assign(WebURLRequestPrivate*);
300 310
301 private: 311 private:
302 WebURLRequestPrivate* m_private; 312 WebURLRequestPrivate* m_private;
303 }; 313 };
304 314
305 } // namespace blink 315 } // namespace blink
306 316
307 #endif 317 #endif
OLDNEW
« no previous file with comments | « public/platform/WebServiceWorkerResponseType.h ('k') | public/platform/modules/serviceworker/WebServiceWorkerRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698