| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 * 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 * | 10 * |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #include "config.h" | 29 #include "config.h" |
| 30 #include "NetworkResourcesData.h" | 30 #include "NetworkResourcesData.h" |
| 31 | 31 |
| 32 #include "CachedResource.h" | |
| 33 #include "DOMImplementation.h" | 32 #include "DOMImplementation.h" |
| 34 #include "core/loader/TextResourceDecoder.h" | 33 #include "core/loader/TextResourceDecoder.h" |
| 34 #include "core/loader/cache/CachedResource.h" |
| 35 #include "core/platform/SharedBuffer.h" | 35 #include "core/platform/SharedBuffer.h" |
| 36 #include "core/platform/network/ResourceResponse.h" | 36 #include "core/platform/network/ResourceResponse.h" |
| 37 #include <wtf/MemoryInstrumentationHashMap.h> | 37 #include <wtf/MemoryInstrumentationHashMap.h> |
| 38 | 38 |
| 39 namespace { | 39 namespace { |
| 40 // 100MB | 40 // 100MB |
| 41 static size_t maximumResourcesContentSize = 100 * 1000 * 1000; | 41 static size_t maximumResourcesContentSize = 100 * 1000 * 1000; |
| 42 | 42 |
| 43 // 10MB | 43 // 10MB |
| 44 static size_t maximumSingleResourceContentSize = 10 * 1000 * 1000; | 44 static size_t maximumSingleResourceContentSize = 10 * 1000 * 1000; |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 void NetworkResourcesData::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo)
const | 415 void NetworkResourcesData::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo)
const |
| 416 { | 416 { |
| 417 MemoryClassInfo info(memoryObjectInfo, this); | 417 MemoryClassInfo info(memoryObjectInfo, this); |
| 418 info.addMember(m_requestIdsDeque, "requestIdsDeque"); | 418 info.addMember(m_requestIdsDeque, "requestIdsDeque"); |
| 419 info.addMember(m_reusedXHRReplayDataRequestIds, "reusedXHRReplayDataRequestI
ds"); | 419 info.addMember(m_reusedXHRReplayDataRequestIds, "reusedXHRReplayDataRequestI
ds"); |
| 420 info.addMember(m_requestIdToResourceDataMap, "requestIdToResourceDataMap"); | 420 info.addMember(m_requestIdToResourceDataMap, "requestIdToResourceDataMap"); |
| 421 } | 421 } |
| 422 | 422 |
| 423 } // namespace WebCore | 423 } // namespace WebCore |
| 424 | 424 |
| OLD | NEW |