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

Unified Diff: net/disk_cache/tracing/tracing_cache_backend.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/tracing/tracing_cache_backend.h
diff --git a/net/disk_cache/tracing/tracing_cache_backend.h b/net/disk_cache/tracing/tracing_cache_backend.h
index b8d18696f54019330c925b2cf2f9728d95165ad0..e93f0ac581485ca179fee1f4cf30ee654ec168cc 100644
--- a/net/disk_cache/tracing/tracing_cache_backend.h
+++ b/net/disk_cache/tracing/tracing_cache_backend.h
@@ -19,16 +19,19 @@ class EntryProxy;
// The TracingCacheBackend implements the Cache Backend interface. It intercepts
// all backend operations from the IO thread and records the time from the start
// of the operation until the result is delivered.
-class NET_EXPORT TracingCacheBackend : public Backend,
- public base::SupportsWeakPtr<TracingCacheBackend> {
+class NET_EXPORT TracingCacheBackend
+ : public Backend,
+ public base::SupportsWeakPtr<TracingCacheBackend> {
public:
explicit TracingCacheBackend(scoped_ptr<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;
@@ -38,7 +41,8 @@ class NET_EXPORT TracingCacheBackend : 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(StatsItems* stats) OVERRIDE;
@@ -46,13 +50,7 @@ class NET_EXPORT TracingCacheBackend : public Backend,
private:
friend class EntryProxy;
- enum Operation {
- OP_OPEN,
- OP_CREATE,
- OP_DOOM_ENTRY,
- OP_READ,
- OP_WRITE
- };
+ enum Operation { OP_OPEN, OP_CREATE, OP_DOOM_ENTRY, OP_READ, OP_WRITE };
virtual ~TracingCacheBackend();
@@ -60,16 +58,23 @@ class NET_EXPORT TracingCacheBackend : public Backend,
void OnDeleteEntry(Entry* e);
- void RecordEvent(base::TimeTicks start_time, Operation op, std::string key,
- Entry* entry, int result);
+ void RecordEvent(base::TimeTicks start_time,
+ Operation op,
+ std::string key,
+ Entry* entry,
+ int result);
- void BackendOpComplete(base::TimeTicks start_time, Operation op,
- std::string key, Entry** entry,
- const CompletionCallback& callback, int result);
+ void BackendOpComplete(base::TimeTicks start_time,
+ Operation op,
+ std::string key,
+ Entry** entry,
+ const CompletionCallback& callback,
+ int result);
net::CompletionCallback BindCompletion(Operation op,
base::TimeTicks start_time,
- const std::string& key, Entry **entry,
+ const std::string& key,
+ Entry** entry,
const net::CompletionCallback& cb);
scoped_ptr<Backend> backend_;

Powered by Google App Engine
This is Rietveld 408576698