| 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 #include "core/dom/WebCoreMemoryInstrumentation.h" | 29 #include "core/dom/WebCoreMemoryInstrumentation.h" |
| 30 #include "core/loader/ResourceLoader.h" | 30 #include "core/loader/ResourceLoader.h" |
| 31 #include "core/loader/cache/CachedResourceClient.h" | 31 #include "core/loader/cache/CachedResourceClient.h" |
| 32 #include "core/loader/cache/CachedResourceClientWalker.h" | 32 #include "core/loader/cache/CachedResourceClientWalker.h" |
| 33 #include "core/loader/cache/CachedResourceLoader.h" | 33 #include "core/loader/cache/CachedResourceLoader.h" |
| 34 #include "core/platform/SharedBuffer.h" | 34 #include "core/platform/SharedBuffer.h" |
| 35 #include <wtf/PassRefPtr.h> | 35 #include <wtf/PassRefPtr.h> |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace WebCore { |
| 38 | 38 |
| 39 CachedRawResource::CachedRawResource(ResourceRequest& resourceRequest, Type type
) | 39 CachedRawResource::CachedRawResource(const ResourceRequest& resourceRequest, Typ
e type) |
| 40 : CachedResource(resourceRequest, type) | 40 : CachedResource(resourceRequest, type) |
| 41 { | 41 { |
| 42 } | 42 } |
| 43 | 43 |
| 44 void CachedRawResource::appendData(const char* data, int length) | 44 void CachedRawResource::appendData(const char* data, int length) |
| 45 { | 45 { |
| 46 CachedResource::appendData(data, length); | 46 CachedResource::appendData(data, length); |
| 47 | 47 |
| 48 CachedResourceHandle<CachedRawResource> protect(this); | 48 CachedResourceHandle<CachedRawResource> protect(this); |
| 49 CachedResourceClientWalker<CachedRawResourceClient> w(m_clients); | 49 CachedResourceClientWalker<CachedRawResourceClient> w(m_clients); |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 } | 196 } |
| 197 | 197 |
| 198 void CachedRawResource::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) co
nst | 198 void CachedRawResource::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) co
nst |
| 199 { | 199 { |
| 200 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CachedResou
rceRaw); | 200 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CachedResou
rceRaw); |
| 201 CachedResource::reportMemoryUsage(memoryObjectInfo); | 201 CachedResource::reportMemoryUsage(memoryObjectInfo); |
| 202 } | 202 } |
| 203 | 203 |
| 204 | 204 |
| 205 } // namespace WebCore | 205 } // namespace WebCore |
| OLD | NEW |