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

Unified Diff: net/disk_cache/simple/simple_backend_impl.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/simple/simple_backend_impl.h
diff --git a/net/disk_cache/simple/simple_backend_impl.h b/net/disk_cache/simple/simple_backend_impl.h
index eb14de8841a309f6c8ed80a67e60169cf44485ee..32277e4fd75b03680565504bbb5e13f2dcdbe3b1 100644
--- a/net/disk_cache/simple/simple_backend_impl.h
+++ b/net/disk_cache/simple/simple_backend_impl.h
@@ -32,7 +32,8 @@ namespace disk_cache {
// SimpleBackendImpl is a new cache backend that stores entries in individual
// files.
-// See http://www.chromium.org/developers/design-documents/network-stack/disk-cache/very-simple-backend
+// See
+// http://www.chromium.org/developers/design-documents/network-stack/disk-cache/very-simple-backend
//
// The non-static functions below must be called on the IO thread unless
// otherwise stated.
@@ -40,11 +41,13 @@ namespace disk_cache {
class SimpleEntryImpl;
class SimpleIndex;
-class NET_EXPORT_PRIVATE SimpleBackendImpl : public Backend,
- public SimpleIndexDelegate,
- public base::SupportsWeakPtr<SimpleBackendImpl> {
+class NET_EXPORT_PRIVATE SimpleBackendImpl
+ : public Backend,
+ public SimpleIndexDelegate,
+ public base::SupportsWeakPtr<SimpleBackendImpl> {
public:
- SimpleBackendImpl(const base::FilePath& path, int max_bytes,
+ SimpleBackendImpl(const base::FilePath& path,
+ int max_bytes,
net::CacheType cache_type,
base::SingleThreadTaskRunner* cache_thread,
net::NetLog* net_log);
@@ -87,9 +90,11 @@ class NET_EXPORT_PRIVATE SimpleBackendImpl : public Backend,
// Backend:
virtual net::CacheType GetCacheType() const OVERRIDE;
virtual int32 GetEntryCount() const OVERRIDE;
- virtual int OpenEntry(const std::string& key, Entry** entry,
+ virtual int OpenEntry(const std::string& key,
+ Entry** entry,
const CompletionCallback& callback) OVERRIDE;
- virtual int CreateEntry(const std::string& key, Entry** entry,
+ virtual int CreateEntry(const std::string& key,
+ Entry** entry,
const CompletionCallback& callback) OVERRIDE;
virtual int DoomEntry(const std::string& key,
const CompletionCallback& callback) OVERRIDE;
@@ -99,7 +104,8 @@ class NET_EXPORT_PRIVATE SimpleBackendImpl : public Backend,
const CompletionCallback& callback) OVERRIDE;
virtual int DoomEntriesSince(base::Time initial_time,
const CompletionCallback& callback) OVERRIDE;
- virtual int OpenNextEntry(void** iter, Entry** next_entry,
+ virtual int OpenNextEntry(void** iter,
+ Entry** next_entry,
const CompletionCallback& callback) OVERRIDE;
virtual void EndEnumeration(void** iter) OVERRIDE;
virtual void GetStats(
@@ -152,7 +158,7 @@ class NET_EXPORT_PRIVATE SimpleBackendImpl : public Backend,
// Doom the entry corresponding to |entry_hash|, if it's active or currently
// pending doom. This function does not block if there is an active entry,
// which is very important to prevent races in DoomEntries() above.
- int DoomEntryFromHash(uint64 entry_hash, const CompletionCallback & callback);
+ int DoomEntryFromHash(uint64 entry_hash, const CompletionCallback& callback);
// Called when the index is initilized to find the next entry in the iterator
// |iter|. If there are no more hashes in the iterator list, net::ERR_FAILED

Powered by Google App Engine
This is Rietveld 408576698