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

Unified Diff: net/disk_cache/blockfile/mapped_file.h

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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/blockfile/mapped_file.h
diff --git a/net/disk_cache/blockfile/mapped_file.h b/net/disk_cache/blockfile/mapped_file.h
index f0efa41ed77fd4dcfaf1b1050d1352068132f770..6c942260129c32506eb31293d006081bbc6734e1 100644
--- a/net/disk_cache/blockfile/mapped_file.h
+++ b/net/disk_cache/blockfile/mapped_file.h
@@ -30,9 +30,7 @@ class NET_EXPORT_PRIVATE MappedFile : public File {
// will be mapped in memory.
void* Init(const base::FilePath& name, size_t size);
- void* buffer() const {
- return buffer_;
- }
+ void* buffer() const { return buffer_; }
// Loads or stores a given block from the backing file (synchronously).
bool Load(const FileBlock* block);
@@ -57,7 +55,7 @@ class NET_EXPORT_PRIVATE MappedFile : public File {
#if defined(OS_WIN)
HANDLE section_;
#endif
- void* buffer_; // Address of the memory mapped buffer.
+ void* buffer_; // Address of the memory mapped buffer.
size_t view_size_; // Size of the memory pointed by buffer_.
#if defined(POSIX_AVOID_MMAP)
void* snapshot_; // Copy of the buffer taken when it was last flushed.
@@ -70,9 +68,8 @@ class NET_EXPORT_PRIVATE MappedFile : public File {
class ScopedFlush {
public:
explicit ScopedFlush(MappedFile* file) : file_(file) {}
- ~ScopedFlush() {
- file_->Flush();
- }
+ ~ScopedFlush() { file_->Flush(); }
+
private:
MappedFile* file_;
};

Powered by Google App Engine
This is Rietveld 408576698