Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(649)

Side by Side Diff: Source/core/loader/DocumentLoader.h

Issue 13973026: remove memoryinstrumentation Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove the rest part of MemoryInstrumentation Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/CachedMetadata.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/loader/CachedMetadata.cpp ('k') | Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698