 Chromium Code Reviews
 Chromium Code Reviews Issue 2499263002:
  Add UMA to estimate deroppable memory usage of encoded data size in Resources  (Closed)
    
  
    Issue 2499263002:
  Add UMA to estimate deroppable memory usage of encoded data size in Resources  (Closed) 
  | OLD | NEW | 
|---|---|
| 1 /* | 1 /* | 
| 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 
| 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> | 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> | 
| 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 
| 5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 
| 6 | 6 | 
| 7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or | 
| 8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public | 
| 9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either | 
| 10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. | 
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 210 HashCountedSet<ImageResourceObserver*> m_observers; | 210 HashCountedSet<ImageResourceObserver*> m_observers; | 
| 211 HashCountedSet<ImageResourceObserver*> m_finishedObservers; | 211 HashCountedSet<ImageResourceObserver*> m_finishedObservers; | 
| 212 | 212 | 
| 213 // Indicates if the ImageResource is currently scheduling a reload, e.g. | 213 // Indicates if the ImageResource is currently scheduling a reload, e.g. | 
| 214 // because reloadIfLoFi() was called. | 214 // because reloadIfLoFi() was called. | 
| 215 bool m_isSchedulingReload; | 215 bool m_isSchedulingReload; | 
| 216 | 216 | 
| 217 // Indicates if this ImageResource is either attempting to load a placeholder | 217 // Indicates if this ImageResource is either attempting to load a placeholder | 
| 218 // image, or is a (possibly broken) placeholder image. | 218 // image, or is a (possibly broken) placeholder image. | 
| 219 bool m_isPlaceholder; | 219 bool m_isPlaceholder; | 
| 220 | |
| 221 bool m_isRefetchableFromDiskCache; | |
| 
yhirano
2016/11/16 11:25:38
How about having a function that turns this flag o
 
yhirano
2016/11/16 11:25:38
I think including "data" or "body" in the name is
 
hajimehoshi
2016/11/16 12:15:48
Done. (setNotRefetchableDataFromDiskCache seems we
 
hajimehoshi
2016/11/16 12:19:48
I mean the name setNotRefetchableDataFromDiskCache
 
yhirano
2016/11/17 02:16:56
Is it better to focus on dropping / discarding the
 | |
| 220 }; | 222 }; | 
| 221 | 223 | 
| 222 DEFINE_RESOURCE_TYPE_CASTS(Image); | 224 DEFINE_RESOURCE_TYPE_CASTS(Image); | 
| 223 | 225 | 
| 224 } // namespace blink | 226 } // namespace blink | 
| 225 | 227 | 
| 226 #endif | 228 #endif | 
| OLD | NEW |