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

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

Issue 602073002: [ServiceWorker] Add was_fallback_required flag to ResourceResponseInfo. [1/2 blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: wrap the comment in 80 columns Created 6 years, 2 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 | « Source/platform/network/ResourceResponse.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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 BLINK_PLATFORM_EXPORT void setWasAlternateProtocolAvailable(bool); 160 BLINK_PLATFORM_EXPORT void setWasAlternateProtocolAvailable(bool);
161 161
162 // Flag whether this request was loaded via an explicit proxy (HTTP, SOCKS, etc). 162 // Flag whether this request was loaded via an explicit proxy (HTTP, SOCKS, etc).
163 BLINK_PLATFORM_EXPORT bool wasFetchedViaProxy() const; 163 BLINK_PLATFORM_EXPORT bool wasFetchedViaProxy() const;
164 BLINK_PLATFORM_EXPORT void setWasFetchedViaProxy(bool); 164 BLINK_PLATFORM_EXPORT void setWasFetchedViaProxy(bool);
165 165
166 // Flag whether this request was loaded via a ServiceWorker. 166 // Flag whether this request was loaded via a ServiceWorker.
167 BLINK_PLATFORM_EXPORT bool wasFetchedViaServiceWorker() const; 167 BLINK_PLATFORM_EXPORT bool wasFetchedViaServiceWorker() const;
168 BLINK_PLATFORM_EXPORT void setWasFetchedViaServiceWorker(bool); 168 BLINK_PLATFORM_EXPORT void setWasFetchedViaServiceWorker(bool);
169 169
170 // Flag whether the fallback request with skip service worker flag was
171 // required.
172 BLINK_PLATFORM_EXPORT bool wasFallbackRequiredByServiceWorker() const;
173 BLINK_PLATFORM_EXPORT void setWasFallbackRequiredByServiceWorker(bool);
174
170 // Flag whether this request is part of a multipart response. 175 // Flag whether this request is part of a multipart response.
171 BLINK_PLATFORM_EXPORT bool isMultipartPayload() const; 176 BLINK_PLATFORM_EXPORT bool isMultipartPayload() const;
172 BLINK_PLATFORM_EXPORT void setIsMultipartPayload(bool); 177 BLINK_PLATFORM_EXPORT void setIsMultipartPayload(bool);
173 178
174 // This indicates the location of a downloaded response if the 179 // This indicates the location of a downloaded response if the
175 // WebURLRequest had the downloadToFile flag set to true. This file path 180 // WebURLRequest had the downloadToFile flag set to true. This file path
176 // remains valid for the lifetime of the WebURLLoader used to create it. 181 // remains valid for the lifetime of the WebURLLoader used to create it.
177 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const; 182 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const;
178 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&); 183 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&);
179 184
(...skipping 17 matching lines...) Expand all
197 protected: 202 protected:
198 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*); 203 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*);
199 204
200 private: 205 private:
201 WebURLResponsePrivate* m_private; 206 WebURLResponsePrivate* m_private;
202 }; 207 };
203 208
204 } // namespace blink 209 } // namespace blink
205 210
206 #endif 211 #endif
OLDNEW
« no previous file with comments | « Source/platform/network/ResourceResponse.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698