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

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

Issue 378473002: [ServiceWorker] Add wasFetchedViaServiceWorker flag to WebURLResponse and ResourceResponse. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: s/responce/response/ Created 6 years, 5 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 // Flag whether this request was made when "Alternate-Protocol: xxx" 160 // Flag whether this request was made when "Alternate-Protocol: xxx"
161 // is present in server's response. 161 // is present in server's response.
162 BLINK_PLATFORM_EXPORT bool wasAlternateProtocolAvailable() const; 162 BLINK_PLATFORM_EXPORT bool wasAlternateProtocolAvailable() const;
163 BLINK_PLATFORM_EXPORT void setWasAlternateProtocolAvailable(bool); 163 BLINK_PLATFORM_EXPORT void setWasAlternateProtocolAvailable(bool);
164 164
165 // Flag whether this request was loaded via an explicit proxy (HTTP, SOCKS, etc). 165 // Flag whether this request was loaded via an explicit proxy (HTTP, SOCKS, etc).
166 BLINK_PLATFORM_EXPORT bool wasFetchedViaProxy() const; 166 BLINK_PLATFORM_EXPORT bool wasFetchedViaProxy() const;
167 BLINK_PLATFORM_EXPORT void setWasFetchedViaProxy(bool); 167 BLINK_PLATFORM_EXPORT void setWasFetchedViaProxy(bool);
168 168
169 // Flag whether this request was loaded via a ServiceWorker.
170 BLINK_PLATFORM_EXPORT bool wasFetchedViaServiceWorker() const;
171 BLINK_PLATFORM_EXPORT void setWasFetchedViaServiceWorker(bool);
172
169 // Flag whether this request is part of a multipart response. 173 // Flag whether this request is part of a multipart response.
170 BLINK_PLATFORM_EXPORT bool isMultipartPayload() const; 174 BLINK_PLATFORM_EXPORT bool isMultipartPayload() const;
171 BLINK_PLATFORM_EXPORT void setIsMultipartPayload(bool); 175 BLINK_PLATFORM_EXPORT void setIsMultipartPayload(bool);
172 176
173 // This indicates the location of a downloaded response if the 177 // This indicates the location of a downloaded response if the
174 // WebURLRequest had the downloadToFile flag set to true. This file path 178 // WebURLRequest had the downloadToFile flag set to true. This file path
175 // remains valid for the lifetime of the WebURLLoader used to create it. 179 // remains valid for the lifetime of the WebURLLoader used to create it.
176 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const; 180 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const;
177 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&); 181 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&);
178 182
(...skipping 17 matching lines...) Expand all
196 protected: 200 protected:
197 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*); 201 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*);
198 202
199 private: 203 private:
200 WebURLResponsePrivate* m_private; 204 WebURLResponsePrivate* m_private;
201 }; 205 };
202 206
203 } // namespace blink 207 } // namespace blink
204 208
205 #endif 209 #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