| Index: third_party/WebKit/Source/platform/exported/WebCache.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebCache.cpp b/third_party/WebKit/Source/platform/exported/WebCache.cpp
|
| similarity index 97%
|
| rename from third_party/WebKit/Source/web/WebCache.cpp
|
| rename to third_party/WebKit/Source/platform/exported/WebCache.cpp
|
| index 0bcfc6aee76e6c56c947f8aaa2a5dcc5e78c75e8..4c612d1b3f5f37e8e94b9714fb1cd52a879b66cd 100644
|
| --- a/third_party/WebKit/Source/web/WebCache.cpp
|
| +++ b/third_party/WebKit/Source/platform/exported/WebCache.cpp
|
| @@ -28,7 +28,7 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#include "public/web/WebCache.h"
|
| +#include "public/platform/WebCache.h"
|
|
|
| #include "platform/loader/fetch/MemoryCache.h"
|
|
|
| @@ -62,8 +62,9 @@ void WebCache::getUsageStats(UsageStats* result) {
|
| if (cache) {
|
| result->capacity = cache->capacity();
|
| result->size = cache->size();
|
| - } else
|
| + } else {
|
| memset(result, 0, sizeof(UsageStats));
|
| + }
|
| }
|
|
|
| void WebCache::getResourceTypeStats(ResourceTypeStats* result) {
|
| @@ -76,8 +77,9 @@ void WebCache::getResourceTypeStats(ResourceTypeStats* result) {
|
| ToResourceTypeStat(stats.xslStyleSheets, result->xslStyleSheets);
|
| ToResourceTypeStat(stats.fonts, result->fonts);
|
| ToResourceTypeStat(stats.other, result->other);
|
| - } else
|
| + } else {
|
| memset(result, 0, sizeof(WebCache::ResourceTypeStats));
|
| + }
|
| }
|
|
|
| } // namespace blink
|
|
|