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

Unified Diff: net/disk_cache/simple/simple_entry_format.cc

Issue 14263005: Refactor our SimpleIndex file format and serialization to use Pickle instead of the previously bugg… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
Index: net/disk_cache/simple/simple_entry_format.cc
diff --git a/chrome/browser/ui/views/frame/taskbar_decorator.cc b/net/disk_cache/simple/simple_entry_format.cc
similarity index 39%
copy from chrome/browser/ui/views/frame/taskbar_decorator.cc
copy to net/disk_cache/simple/simple_entry_format.cc
index 7bef2a4fa9e77b46ae05badcc7002f9f0583f0fc..340889311d052389d38336c9b93416a8611247b2 100644
--- a/chrome/browser/ui/views/frame/taskbar_decorator.cc
+++ b/net/disk_cache/simple/simple_entry_format.cc
@@ -2,11 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/views/frame/taskbar_decorator.h"
+#include "net/disk_cache/simple/simple_entry_format.h"
-namespace chrome {
+#include <cstring>
-void DrawTaskbarDecoration(gfx::NativeWindow window, const gfx::Image* image) {
+namespace disk_cache {
+
+SimpleFileHeader::SimpleFileHeader() {
+ // Make hashing repeatable: leave no padding bytes untouched.
+ std::memset(this, 0, sizeof(*this));
}
-} // namespace chrome
+} // namespace disk_cache

Powered by Google App Engine
This is Rietveld 408576698