| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 131 |
| 132 bool isAttachment() const; | 132 bool isAttachment() const; |
| 133 | 133 |
| 134 // FIXME: These are used by PluginStream on some platforms. Calculations may
differ from just returning plain Last-Modified header. | 134 // FIXME: These are used by PluginStream on some platforms. Calculations may
differ from just returning plain Last-Modified header. |
| 135 // Leaving it for now but this should go away in favor of generic solution. | 135 // Leaving it for now but this should go away in favor of generic solution. |
| 136 void setLastModifiedDate(time_t); | 136 void setLastModifiedDate(time_t); |
| 137 time_t lastModifiedDate() const; | 137 time_t lastModifiedDate() const; |
| 138 | 138 |
| 139 // These functions return parsed values of the corresponding response header
s. | 139 // These functions return parsed values of the corresponding response header
s. |
| 140 // NaN means that the header was not present or had invalid value. | 140 // NaN means that the header was not present or had invalid value. |
| 141 bool cacheControlContainsNoCache(); | 141 bool cacheControlContainsNoCache() const; |
| 142 bool cacheControlContainsNoStore(); | 142 bool cacheControlContainsNoStore() const; |
| 143 bool cacheControlContainsMustRevalidate(); | 143 bool cacheControlContainsMustRevalidate() const; |
| 144 bool hasCacheValidatorFields() const; | 144 bool hasCacheValidatorFields() const; |
| 145 double cacheControlMaxAge(); | 145 double cacheControlMaxAge() const; |
| 146 double cacheControlStaleWhileRevalidate(); | 146 double cacheControlStaleWhileRevalidate() const; |
| 147 double date() const; | 147 double date() const; |
| 148 double age() const; | 148 double age() const; |
| 149 double expires() const; | 149 double expires() const; |
| 150 double lastModified() const; | 150 double lastModified() const; |
| 151 | 151 |
| 152 unsigned connectionID() const; | 152 unsigned connectionID() const; |
| 153 void setConnectionID(unsigned); | 153 void setConnectionID(unsigned); |
| 154 | 154 |
| 155 bool connectionReused() const; | 155 bool connectionReused() const; |
| 156 void setConnectionReused(bool); | 156 void setConnectionReused(bool); |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 HTTPHeaderMap m_httpHeaderFields; | 264 HTTPHeaderMap m_httpHeaderFields; |
| 265 time_t m_lastModifiedDate; | 265 time_t m_lastModifiedDate; |
| 266 bool m_wasCached : 1; | 266 bool m_wasCached : 1; |
| 267 unsigned m_connectionID; | 267 unsigned m_connectionID; |
| 268 bool m_connectionReused : 1; | 268 bool m_connectionReused : 1; |
| 269 RefPtr<ResourceLoadTiming> m_resourceLoadTiming; | 269 RefPtr<ResourceLoadTiming> m_resourceLoadTiming; |
| 270 RefPtr<ResourceLoadInfo> m_resourceLoadInfo; | 270 RefPtr<ResourceLoadInfo> m_resourceLoadInfo; |
| 271 | 271 |
| 272 bool m_isNull : 1; | 272 bool m_isNull : 1; |
| 273 | 273 |
| 274 CacheControlHeader m_cacheControlHeader; | 274 mutable CacheControlHeader m_cacheControlHeader; |
| 275 | 275 |
| 276 mutable bool m_haveParsedAgeHeader : 1; | 276 mutable bool m_haveParsedAgeHeader : 1; |
| 277 mutable bool m_haveParsedDateHeader : 1; | 277 mutable bool m_haveParsedDateHeader : 1; |
| 278 mutable bool m_haveParsedExpiresHeader : 1; | 278 mutable bool m_haveParsedExpiresHeader : 1; |
| 279 mutable bool m_haveParsedLastModifiedHeader : 1; | 279 mutable bool m_haveParsedLastModifiedHeader : 1; |
| 280 | 280 |
| 281 mutable double m_age; | 281 mutable double m_age; |
| 282 mutable double m_date; | 282 mutable double m_date; |
| 283 mutable double m_expires; | 283 mutable double m_expires; |
| 284 mutable double m_lastModified; | 284 mutable double m_lastModified; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 int64_t m_responseTime; | 404 int64_t m_responseTime; |
| 405 String m_remoteIPAddress; | 405 String m_remoteIPAddress; |
| 406 unsigned short m_remotePort; | 406 unsigned short m_remotePort; |
| 407 String m_downloadedFilePath; | 407 String m_downloadedFilePath; |
| 408 RefPtr<BlobDataHandle> m_downloadedFileHandle; | 408 RefPtr<BlobDataHandle> m_downloadedFileHandle; |
| 409 }; | 409 }; |
| 410 | 410 |
| 411 } // namespace blink | 411 } // namespace blink |
| 412 | 412 |
| 413 #endif // ResourceResponse_h | 413 #endif // ResourceResponse_h |
| OLD | NEW |