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

Unified Diff: net/disk_cache/flash/log_store.h

Issue 11532011: Renamed classes for consistency. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: test 2. Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/flash/format.h ('k') | net/disk_cache/flash/log_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/flash/log_store.h
diff --git a/net/disk_cache/flash/log_structured_store.h b/net/disk_cache/flash/log_store.h
similarity index 82%
rename from net/disk_cache/flash/log_structured_store.h
rename to net/disk_cache/flash/log_store.h
index ea65d34325daa66f44eeb34509bc21f4cc396f6e..7dc57aa0790bce2e0e4de2632c3fbf85d36458cc 100644
--- a/net/disk_cache/flash/log_structured_store.h
+++ b/net/disk_cache/flash/log_store.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef NET_DISK_CACHE_FLASH_LOG_STRUCTURED_STORE_H_
-#define NET_DISK_CACHE_FLASH_LOG_STRUCTURED_STORE_H_
+#ifndef NET_DISK_CACHE_FLASH_LOG_STORE_H_
+#define NET_DISK_CACHE_FLASH_LOG_STORE_H_
#include <set>
#include <vector>
@@ -22,10 +22,10 @@ class Storage;
// i.e. it's not possible to overwrite data in place. In order to update an
// entry, a new version must be written. Only one entry can be written to at
// any given time, while concurrent reading of multiple entries is supported.
-class NET_EXPORT_PRIVATE LogStructuredStore {
+class NET_EXPORT_PRIVATE LogStore {
public:
- explicit LogStructuredStore(Storage* storage);
- ~LogStructuredStore();
+ explicit LogStore(Storage* storage);
+ ~LogStore();
// Performs initialization. Must be the first function called and further
// calls should be made only if it is successful.
@@ -56,13 +56,13 @@ class NET_EXPORT_PRIVATE LogStructuredStore {
private:
FRIEND_TEST_ALL_PREFIXES(FlashCacheTest,
- LogStructuredStoreReadFromClosedSegment);
+ LogStoreReadFromClosedSegment);
FRIEND_TEST_ALL_PREFIXES(FlashCacheTest,
- LogStructuredStoreSegmentSelectionIsFifo);
+ LogStoreSegmentSelectionIsFifo);
FRIEND_TEST_ALL_PREFIXES(FlashCacheTest,
- LogStructuredStoreInUseSegmentIsSkipped);
+ LogStoreInUseSegmentIsSkipped);
FRIEND_TEST_ALL_PREFIXES(FlashCacheTest,
- LogStructuredStoreReadFromCurrentAfterClose);
+ LogStoreReadFromCurrentAfterClose);
int32 GetNextSegmentIndex();
bool InUse(int32 segment_index) const;
@@ -94,9 +94,9 @@ class NET_EXPORT_PRIVATE LogStructuredStore {
bool init_; // Init was called.
bool closed_; // Close was called.
- DISALLOW_COPY_AND_ASSIGN(LogStructuredStore);
+ DISALLOW_COPY_AND_ASSIGN(LogStore);
};
} // namespace disk_cache
-#endif // NET_DISK_CACHE_FLASH_LOG_STRUCTURED_STORE_H_
+#endif // NET_DISK_CACHE_FLASH_LOG_STORE_H_
« no previous file with comments | « net/disk_cache/flash/format.h ('k') | net/disk_cache/flash/log_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698