Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: third_party/WebKit/Source/platform/exported/WebCache.cpp

Issue 2675303004: Move WebCache from public/web into public/platform (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/BUILD.gn ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « third_party/WebKit/Source/platform/BUILD.gn ('k') | third_party/WebKit/Source/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698