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 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "CachedRawResource.h" | 27 #include "CachedRawResource.h" |
28 | 28 |
29 #include "CachedResourceClient.h" | 29 #include "CachedResourceClient.h" |
30 #include "CachedResourceClientWalker.h" | 30 #include "CachedResourceClientWalker.h" |
31 #include "CachedResourceLoader.h" | 31 #include "CachedResourceLoader.h" |
32 #include "ResourceLoader.h" | 32 #include "ResourceLoader.h" |
33 #include "SharedBuffer.h" | 33 #include "SharedBuffer.h" |
34 #include "WebCoreMemoryInstrumentation.h" | |
35 #include <wtf/PassRefPtr.h> | 34 #include <wtf/PassRefPtr.h> |
36 | 35 |
37 namespace WebCore { | 36 namespace WebCore { |
38 | 37 |
39 CachedRawResource::CachedRawResource(ResourceRequest& resourceRequest, Type type
) | 38 CachedRawResource::CachedRawResource(ResourceRequest& resourceRequest, Type type
) |
40 : CachedResource(resourceRequest, type) | 39 : CachedResource(resourceRequest, type) |
41 , m_identifier(0) | 40 , m_identifier(0) |
42 { | 41 { |
43 } | 42 } |
44 | 43 |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 205 |
207 return true; | 206 return true; |
208 } | 207 } |
209 | 208 |
210 void CachedRawResource::clear() | 209 void CachedRawResource::clear() |
211 { | 210 { |
212 m_data.clear(); | 211 m_data.clear(); |
213 setEncodedSize(0); | 212 setEncodedSize(0); |
214 } | 213 } |
215 | 214 |
216 void CachedRawResource::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) co
nst | |
217 { | |
218 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CachedResou
rceRaw); | |
219 CachedResource::reportMemoryUsage(memoryObjectInfo); | |
220 } | |
221 | |
222 | |
223 } // namespace WebCore | 215 } // namespace WebCore |
OLD | NEW |