| OLD | NEW |
| 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 17 matching lines...) Expand all Loading... |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebURLResponse_h | 31 #ifndef WebURLResponse_h |
| 32 #define WebURLResponse_h | 32 #define WebURLResponse_h |
| 33 | 33 |
| 34 #include "public/platform/WebCString.h" | 34 #include "public/platform/WebCString.h" |
| 35 #include "public/platform/WebCommon.h" | 35 #include "public/platform/WebCommon.h" |
| 36 #include "public/platform/WebPrivateOwnPtr.h" | 36 #include "public/platform/WebPrivateOwnPtr.h" |
| 37 #include "public/platform/WebString.h" | 37 #include "public/platform/WebString.h" |
| 38 #include "public/platform/WebVector.h" |
| 38 #include "public/platform/modules/serviceworker/WebServiceWorkerResponseType.h" | 39 #include "public/platform/modules/serviceworker/WebServiceWorkerResponseType.h" |
| 39 | 40 |
| 40 namespace blink { | 41 namespace blink { |
| 41 | 42 |
| 42 class ResourceResponse; | 43 class ResourceResponse; |
| 43 class WebHTTPHeaderVisitor; | 44 class WebHTTPHeaderVisitor; |
| 44 class WebHTTPLoadInfo; | 45 class WebHTTPLoadInfo; |
| 45 class WebURL; | 46 class WebURL; |
| 46 class WebURLLoadTiming; | 47 class WebURLLoadTiming; |
| 47 class WebURLResponsePrivate; | 48 class WebURLResponsePrivate; |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 BLINK_PLATFORM_EXPORT void setOriginalURLViaServiceWorker(const WebURL&); | 226 BLINK_PLATFORM_EXPORT void setOriginalURLViaServiceWorker(const WebURL&); |
| 226 | 227 |
| 227 // The boundary of the response. Set only when this is a multipart response. | 228 // The boundary of the response. Set only when this is a multipart response. |
| 228 BLINK_PLATFORM_EXPORT void setMultipartBoundary(const char* bytes, size_t /*
size */); | 229 BLINK_PLATFORM_EXPORT void setMultipartBoundary(const char* bytes, size_t /*
size */); |
| 229 | 230 |
| 230 // The cache name of the CacheStorage from where the response is served via | 231 // The cache name of the CacheStorage from where the response is served via |
| 231 // the ServiceWorker. Null if the response isn't from the CacheStorage. | 232 // the ServiceWorker. Null if the response isn't from the CacheStorage. |
| 232 BLINK_PLATFORM_EXPORT WebString cacheStorageCacheName() const; | 233 BLINK_PLATFORM_EXPORT WebString cacheStorageCacheName() const; |
| 233 BLINK_PLATFORM_EXPORT void setCacheStorageCacheName(const WebString&); | 234 BLINK_PLATFORM_EXPORT void setCacheStorageCacheName(const WebString&); |
| 234 | 235 |
| 236 // The headers that should be exposed according to CORS. Only guaranteed |
| 237 // to be set if the response was fetched by a ServiceWorker. |
| 238 BLINK_PLATFORM_EXPORT WebVector<WebString> corsExposedHeaderNames() const; |
| 239 BLINK_PLATFORM_EXPORT void setCorsExposedHeaderNames(const WebVector<WebStri
ng>&); |
| 240 |
| 235 // This indicates the location of a downloaded response if the | 241 // This indicates the location of a downloaded response if the |
| 236 // WebURLRequest had the downloadToFile flag set to true. This file path | 242 // WebURLRequest had the downloadToFile flag set to true. This file path |
| 237 // remains valid for the lifetime of the WebURLLoader used to create it. | 243 // remains valid for the lifetime of the WebURLLoader used to create it. |
| 238 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const; | 244 BLINK_PLATFORM_EXPORT WebString downloadFilePath() const; |
| 239 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&); | 245 BLINK_PLATFORM_EXPORT void setDownloadFilePath(const WebString&); |
| 240 | 246 |
| 241 // Remote IP address of the socket which fetched this resource. | 247 // Remote IP address of the socket which fetched this resource. |
| 242 BLINK_PLATFORM_EXPORT WebString remoteIPAddress() const; | 248 BLINK_PLATFORM_EXPORT WebString remoteIPAddress() const; |
| 243 BLINK_PLATFORM_EXPORT void setRemoteIPAddress(const WebString&); | 249 BLINK_PLATFORM_EXPORT void setRemoteIPAddress(const WebString&); |
| 244 | 250 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 258 protected: | 264 protected: |
| 259 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*); | 265 BLINK_PLATFORM_EXPORT void assign(WebURLResponsePrivate*); |
| 260 | 266 |
| 261 private: | 267 private: |
| 262 WebURLResponsePrivate* m_private; | 268 WebURLResponsePrivate* m_private; |
| 263 }; | 269 }; |
| 264 | 270 |
| 265 } // namespace blink | 271 } // namespace blink |
| 266 | 272 |
| 267 #endif | 273 #endif |
| OLD | NEW |