OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MANAGER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MANAGER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 // Removes the backing store for the host. | 59 // Removes the backing store for the host. |
60 static void RemoveBackingStore(RenderWidgetHost* host); | 60 static void RemoveBackingStore(RenderWidgetHost* host); |
61 | 61 |
62 // Removes all backing stores. | 62 // Removes all backing stores. |
63 CONTENT_EXPORT static void RemoveAllBackingStores(); | 63 CONTENT_EXPORT static void RemoveAllBackingStores(); |
64 | 64 |
65 // Expires the given backing store. This emulates something getting evicted | 65 // Expires the given backing store. This emulates something getting evicted |
66 // from the cache for the purpose of testing. Returns true if the host was | 66 // from the cache for the purpose of testing. Returns true if the host was |
67 // removed, false if it wasn't found. | 67 // removed, false if it wasn't found. |
68 static bool ExpireBackingStoreForTest(RenderWidgetHost* host); | 68 CONTENT_EXPORT static bool ExpireBackingStoreForTest(RenderWidgetHost* host); |
69 | 69 |
70 // Current size in bytes of the backing store cache. | 70 // Current size in bytes of the backing store cache. |
71 CONTENT_EXPORT static size_t MemorySize(); | 71 CONTENT_EXPORT static size_t MemorySize(); |
72 | 72 |
73 private: | 73 private: |
74 // Not intended for instantiation. | 74 // Not intended for instantiation. |
75 BackingStoreManager() {} | 75 BackingStoreManager() {} |
76 | 76 |
77 DISALLOW_COPY_AND_ASSIGN(BackingStoreManager); | 77 DISALLOW_COPY_AND_ASSIGN(BackingStoreManager); |
78 }; | 78 }; |
79 | 79 |
80 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MANAGER_H_ | 80 #endif // CONTENT_BROWSER_RENDERER_HOST_BACKING_STORE_MANAGER_H_ |
OLD | NEW |