| Index: net/disk_cache/simple/simple_synchronous_entry.h
|
| diff --git a/net/disk_cache/simple/simple_synchronous_entry.h b/net/disk_cache/simple/simple_synchronous_entry.h
|
| index 739a48894934c515393b3ca6e7e3a5804680c54c..dd41009e6842da3e9187ba0de2ec7318d15d570e 100644
|
| --- a/net/disk_cache/simple/simple_synchronous_entry.h
|
| +++ b/net/disk_cache/simple/simple_synchronous_entry.h
|
| @@ -128,8 +128,7 @@ class SimpleSynchronousEntry {
|
| // Deletes an entry from the file system without affecting the state of the
|
| // corresponding instance, if any (allowing operations to continue to be
|
| // executed through that instance). Returns a net error code.
|
| - static int DoomEntry(const base::FilePath& path,
|
| - uint64 entry_hash);
|
| + static int DoomEntry(const base::FilePath& path, uint64 entry_hash);
|
|
|
| // Like |DoomEntry()| above. Deletes all entries corresponding to the
|
| // |key_hashes|. Succeeds only when all entries are deleted. Returns a net
|
| @@ -183,10 +182,7 @@ class SimpleSynchronousEntry {
|
| CREATE_ENTRY_MAX = 4,
|
| };
|
|
|
| - enum FileRequired {
|
| - FILE_NOT_REQUIRED,
|
| - FILE_REQUIRED
|
| - };
|
| + enum FileRequired { FILE_NOT_REQUIRED, FILE_REQUIRED };
|
|
|
| struct SparseRange {
|
| int64 offset;
|
| @@ -199,11 +195,10 @@ class SimpleSynchronousEntry {
|
| }
|
| };
|
|
|
| - SimpleSynchronousEntry(
|
| - net::CacheType cache_type,
|
| - const base::FilePath& path,
|
| - const std::string& key,
|
| - uint64 entry_hash);
|
| + SimpleSynchronousEntry(net::CacheType cache_type,
|
| + const base::FilePath& path,
|
| + const std::string& key,
|
| + uint64 entry_hash);
|
|
|
| // Like Entry, the SimpleSynchronousEntry self releases when Close() is
|
| // called.
|
| @@ -212,18 +207,15 @@ class SimpleSynchronousEntry {
|
| // Tries to open one of the cache entry files. Succeeds if the open succeeds
|
| // or if the file was not found and is allowed to be omitted if the
|
| // corresponding stream is empty.
|
| - bool MaybeOpenFile(int file_index,
|
| - base::File::Error* out_error);
|
| + bool MaybeOpenFile(int file_index, base::File::Error* out_error);
|
| // Creates one of the cache entry files if necessary. If the file is allowed
|
| // to be omitted if the corresponding stream is empty, and if |file_required|
|
| // is FILE_NOT_REQUIRED, then the file is not created; otherwise, it is.
|
| bool MaybeCreateFile(int file_index,
|
| FileRequired file_required,
|
| base::File::Error* out_error);
|
| - bool OpenFiles(bool had_index,
|
| - SimpleEntryStat* out_entry_stat);
|
| - bool CreateFiles(bool had_index,
|
| - SimpleEntryStat* out_entry_stat);
|
| + bool OpenFiles(bool had_index, SimpleEntryStat* out_entry_stat);
|
| + bool CreateFiles(bool had_index, SimpleEntryStat* out_entry_stat);
|
| void CloseFile(int index);
|
| void CloseFiles();
|
|
|
| @@ -284,12 +276,16 @@ class SimpleSynchronousEntry {
|
| // Reads from a single sparse range. If asked to read the entire range, also
|
| // verifies the CRC32.
|
| bool ReadSparseRange(const SparseRange* range,
|
| - int offset, int len, char* buf);
|
| + int offset,
|
| + int len,
|
| + char* buf);
|
|
|
| // Writes to a single (existing) sparse range. If asked to write the entire
|
| // range, also updates the CRC32; otherwise, invalidates it.
|
| bool WriteSparseRange(SparseRange* range,
|
| - int offset, int len, const char* buf);
|
| + int offset,
|
| + int len,
|
| + const char* buf);
|
|
|
| // Appends a new sparse range to the sparse data file.
|
| bool AppendSparseRange(int64 offset, int len, const char* buf);
|
| @@ -304,9 +300,7 @@ class SimpleSynchronousEntry {
|
|
|
| base::FilePath GetFilenameFromFileIndex(int file_index);
|
|
|
| - bool sparse_file_open() const {
|
| - return sparse_file_.IsValid();
|
| - }
|
| + bool sparse_file_open() const { return sparse_file_.IsValid(); }
|
|
|
| const net::CacheType cache_type_;
|
| const base::FilePath path_;
|
|
|