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 // An cache was modified, possibly changing it's size. | |
|
jkarlin
2016/10/21 18:04:19
s/An/A/
cmumford
2016/11/10 17:28:16
Done.
| |
| 17 virtual void CacheModified(const CacheStorageCache* cache, | |
|
jkarlin
2016/10/21 19:24:39
These two functions are subtly different and it's
cmumford
2016/11/10 17:28:17
Agreed. I decided to merge the two into CacheSizeS
| |
| 18 int64_t size_delta) = 0; | |
| 19 | |
| 20 // The cache size has been set. | |
| 21 virtual void SetCacheSize(const CacheStorageCache* cache, | |
|
jkarlin
2016/10/21 19:24:39
Prefer CacheSizeSet as you're not actually setting
cmumford
2016/11/10 17:28:16
Acknowledged.
| |
| 22 int64_t cache_size) = 0; | |
| 23 }; | |
| 24 | |
| 25 } // namespace content | |
| 26 | |
| 27 #endif // CONTENT_BROWSER_CACHE_STORAGE_CACHE_STORAGE_CACHE_OBSERVER_H_ | |
| OLD | NEW |