| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 const KURL& ResourceResponse::url() const { | 274 const KURL& ResourceResponse::url() const { |
| 275 return m_url; | 275 return m_url; |
| 276 } | 276 } |
| 277 | 277 |
| 278 void ResourceResponse::setURL(const KURL& url) { | 278 void ResourceResponse::setURL(const KURL& url) { |
| 279 m_isNull = false; | 279 m_isNull = false; |
| 280 | 280 |
| 281 m_url = url; | 281 m_url = url; |
| 282 } | 282 } |
| 283 | 283 |
| 284 const AtomicString& ResourceResponse::alpnNegotiatedProtocol() const { |
| 285 return m_alpnNegotiatedProtocol; |
| 286 } |
| 287 |
| 288 void ResourceResponse::setALPNNegotiatedProtocol(const AtomicString& value) { |
| 289 m_alpnNegotiatedProtocol = value; |
| 290 } |
| 291 |
| 292 const AtomicString& ResourceResponse::connectionInfo() const { |
| 293 return m_connectionInfo; |
| 294 } |
| 295 |
| 296 void ResourceResponse::setConnectionInfo(const AtomicString& value) { |
| 297 m_connectionInfo = value; |
| 298 } |
| 299 |
| 284 const AtomicString& ResourceResponse::mimeType() const { | 300 const AtomicString& ResourceResponse::mimeType() const { |
| 285 return m_mimeType; | 301 return m_mimeType; |
| 286 } | 302 } |
| 287 | 303 |
| 288 void ResourceResponse::setMimeType(const AtomicString& mimeType) { | 304 void ResourceResponse::setMimeType(const AtomicString& mimeType) { |
| 289 m_isNull = false; | 305 m_isNull = false; |
| 290 | 306 |
| 291 // FIXME: MIME type is determined by HTTP Content-Type header. We should | 307 // FIXME: MIME type is determined by HTTP Content-Type header. We should |
| 292 // update the header, so that it doesn't disagree with m_mimeType. | 308 // update the header, so that it doesn't disagree with m_mimeType. |
| 293 m_mimeType = mimeType; | 309 m_mimeType = mimeType; |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 if (a.resourceLoadTiming() != b.resourceLoadTiming()) | 641 if (a.resourceLoadTiming() != b.resourceLoadTiming()) |
| 626 return false; | 642 return false; |
| 627 if (a.encodedBodyLength() != b.encodedBodyLength()) | 643 if (a.encodedBodyLength() != b.encodedBodyLength()) |
| 628 return false; | 644 return false; |
| 629 if (a.decodedBodyLength() != b.decodedBodyLength()) | 645 if (a.decodedBodyLength() != b.decodedBodyLength()) |
| 630 return false; | 646 return false; |
| 631 return true; | 647 return true; |
| 632 } | 648 } |
| 633 | 649 |
| 634 } // namespace blink | 650 } // namespace blink |
| OLD | NEW |