OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 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 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 176 |
177 DocumentLoadTiming* timing() { return &m_documentLoadTiming; } | 177 DocumentLoadTiming* timing() { return &m_documentLoadTiming; } |
178 void resetTiming() { m_documentLoadTiming = DocumentLoadTiming(); } | 178 void resetTiming() { m_documentLoadTiming = DocumentLoadTiming(); } |
179 | 179 |
180 // The WebKit layer calls this function when it's ready for the data to | 180 // The WebKit layer calls this function when it's ready for the data to |
181 // actually be added to the document. | 181 // actually be added to the document. |
182 void commitData(const char* bytes, size_t length); | 182 void commitData(const char* bytes, size_t length); |
183 | 183 |
184 ApplicationCacheHost* applicationCacheHost() const { return m_applicatio
nCacheHost.get(); } | 184 ApplicationCacheHost* applicationCacheHost() const { return m_applicatio
nCacheHost.get(); } |
185 | 185 |
186 virtual void reportMemoryUsage(MemoryObjectInfo*) const; | |
187 void checkLoadComplete(); | 186 void checkLoadComplete(); |
188 | 187 |
189 protected: | 188 protected: |
190 DocumentLoader(const ResourceRequest&, const SubstituteData&); | 189 DocumentLoader(const ResourceRequest&, const SubstituteData&); |
191 | 190 |
192 bool m_deferMainResourceDataLoad; | 191 bool m_deferMainResourceDataLoad; |
193 | 192 |
194 private: | 193 private: |
195 | 194 |
196 // The URL of the document resulting from this DocumentLoader. | 195 // The URL of the document resulting from this DocumentLoader. |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 313 |
315 inline void DocumentLoader::takeMemoryCacheLoadsForClientNotification(Vector
<String>& loadsSet) | 314 inline void DocumentLoader::takeMemoryCacheLoadsForClientNotification(Vector
<String>& loadsSet) |
316 { | 315 { |
317 loadsSet.swap(m_resourcesLoadedFromMemoryCacheForClientNotification); | 316 loadsSet.swap(m_resourcesLoadedFromMemoryCacheForClientNotification); |
318 m_resourcesLoadedFromMemoryCacheForClientNotification.clear(); | 317 m_resourcesLoadedFromMemoryCacheForClientNotification.clear(); |
319 } | 318 } |
320 | 319 |
321 } | 320 } |
322 | 321 |
323 #endif // DocumentLoader_h | 322 #endif // DocumentLoader_h |
OLD | NEW |