| 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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 | 592 |
| 593 PassRefPtr<ResourceLoadInfo> ResourceResponse::resourceLoadInfo() const { | 593 PassRefPtr<ResourceLoadInfo> ResourceResponse::resourceLoadInfo() const { |
| 594 return m_resourceLoadInfo.get(); | 594 return m_resourceLoadInfo.get(); |
| 595 } | 595 } |
| 596 | 596 |
| 597 void ResourceResponse::setResourceLoadInfo( | 597 void ResourceResponse::setResourceLoadInfo( |
| 598 PassRefPtr<ResourceLoadInfo> loadInfo) { | 598 PassRefPtr<ResourceLoadInfo> loadInfo) { |
| 599 m_resourceLoadInfo = loadInfo; | 599 m_resourceLoadInfo = loadInfo; |
| 600 } | 600 } |
| 601 | 601 |
| 602 void ResourceResponse::addToEncodedDataLength(long long value) { | 602 void ResourceResponse::setEncodedDataLength(long long value) { |
| 603 m_encodedDataLength += value; | 603 m_encodedDataLength = value; |
| 604 } | 604 } |
| 605 | 605 |
| 606 void ResourceResponse::addToEncodedBodyLength(long long value) { | 606 void ResourceResponse::addToEncodedBodyLength(long long value) { |
| 607 m_encodedBodyLength += value; | 607 m_encodedBodyLength += value; |
| 608 } | 608 } |
| 609 | 609 |
| 610 void ResourceResponse::addToDecodedBodyLength(long long value) { | 610 void ResourceResponse::addToDecodedBodyLength(long long value) { |
| 611 m_decodedBodyLength += value; | 611 m_decodedBodyLength += value; |
| 612 } | 612 } |
| 613 | 613 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 if (a.resourceLoadTiming() != b.resourceLoadTiming()) | 655 if (a.resourceLoadTiming() != b.resourceLoadTiming()) |
| 656 return false; | 656 return false; |
| 657 if (a.encodedBodyLength() != b.encodedBodyLength()) | 657 if (a.encodedBodyLength() != b.encodedBodyLength()) |
| 658 return false; | 658 return false; |
| 659 if (a.decodedBodyLength() != b.decodedBodyLength()) | 659 if (a.decodedBodyLength() != b.decodedBodyLength()) |
| 660 return false; | 660 return false; |
| 661 return true; | 661 return true; |
| 662 } | 662 } |
| 663 | 663 |
| 664 } // namespace blink | 664 } // namespace blink |
| OLD | NEW |