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

Side by Side Diff: net/disk_cache/simple/simple_backend_version.h

Issue 1535363003: Switch to standard integer types in net/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: stddef Created 5 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_VERSION_H_ 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_VERSION_H_
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_VERSION_H_ 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_VERSION_H_
7 7
8 #include <stdint.h>
9
8 namespace disk_cache { 10 namespace disk_cache {
9 11
10 // Short rules helping to think about data upgrades within Simple Cache: 12 // Short rules helping to think about data upgrades within Simple Cache:
11 // * ALL changes of on-disk data format, backward-compatible or not, 13 // * ALL changes of on-disk data format, backward-compatible or not,
12 // forward-compatible or not, require updating the |kSimpleVersion|. 14 // forward-compatible or not, require updating the |kSimpleVersion|.
13 // * All cache Upgrades are performed on backend start, must be finished 15 // * All cache Upgrades are performed on backend start, must be finished
14 // before the new backend starts processing any incoming operations. 16 // before the new backend starts processing any incoming operations.
15 // * If the Upgrade is not implemented for transition from 17 // * If the Upgrade is not implemented for transition from
16 // |kSimpleVersion - 1| then the whole cache directory will be cleared. 18 // |kSimpleVersion - 1| then the whole cache directory will be cleared.
17 // * Dropping cache data on disk or some of its parts can be a valid way to 19 // * Dropping cache data on disk or some of its parts can be a valid way to
18 // Upgrade. 20 // Upgrade.
19 const uint32 kSimpleVersion = 6; 21 const uint32_t kSimpleVersion = 6;
20 22
21 // The version of the entry file(s) as written to disk. Must be updated iff the 23 // The version of the entry file(s) as written to disk. Must be updated iff the
22 // entry format changes with the overall backend version update. 24 // entry format changes with the overall backend version update.
23 const uint32 kSimpleEntryVersionOnDisk = 5; 25 const uint32_t kSimpleEntryVersionOnDisk = 5;
24 26
25 } // namespace disk_cache 27 } // namespace disk_cache
26 28
27 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_VERSION_H_ 29 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_BACKEND_VERSION_H_
OLDNEW
« no previous file with comments | « net/disk_cache/simple/simple_backend_impl.cc ('k') | net/disk_cache/simple/simple_entry_format.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698