Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_OBSERVER_H_ | |
| 6 #define CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_OBSERVER_H_ | |
| 7 | |
| 8 #include "content/common/content_export.h" | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 class CacheStorageCache; | |
| 13 | |
| 14 class CONTENT_EXPORT CacheStorageCacheObserver { | |
| 15 public: | |
| 16 // SET: The cache size has been set to the absolute size. | |
| 17 // DELTA: The cache size has changed by the specified amount. | |
| 18 enum class Whence { SET, DELTA }; | |
| 19 | |
| 20 // The cache size has changed. | |
| 21 virtual void CacheSizeSet(const CacheStorageCache* cache, | |
|
jkarlin
2016/11/23 16:02:18
See my earlier comment, but I think this could tur
cmumford
2016/11/29 18:10:20
I went with CacheSizeUpdated.
| |
| 22 Whence whence, | |
| 23 int64_t size) = 0; | |
| 24 }; | |
| 25 | |
| 26 } // namespace content | |
| 27 | |
| 28 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_OBSERVER_H_ | |
| OLD | NEW |