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

Unified Diff: net/disk_cache/blockfile/in_flight_backend_io.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/in_flight_backend_io.h
diff --git a/net/disk_cache/blockfile/in_flight_backend_io.h b/net/disk_cache/blockfile/in_flight_backend_io.h
index 70438ab81cebaf0b675f6e958074c75261ccdebf..18beb820426a53a8aad19ef31905352f49e5a589 100644
--- a/net/disk_cache/blockfile/in_flight_backend_io.h
+++ b/net/disk_cache/blockfile/in_flight_backend_io.h
@@ -24,7 +24,8 @@ class EntryImpl;
// is being bounced between threads.
class BackendIO : public BackgroundIO {
public:
- BackendIO(InFlightIO* controller, BackendImpl* backend,
+ BackendIO(InFlightIO* controller,
+ BackendImpl* backend,
const net::CompletionCallback& callback);
// Runs the actual operation on the background thread.
@@ -62,13 +63,24 @@ class BackendIO : public BackgroundIO {
void DoomEntryImpl(EntryImpl* entry);
void FlushQueue(); // Dummy operation.
void RunTask(const base::Closure& task);
- void ReadData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf,
+ void ReadData(EntryImpl* entry,
+ int index,
+ int offset,
+ net::IOBuffer* buf,
int buf_len);
- void WriteData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf,
- int buf_len, bool truncate);
- void ReadSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf,
+ void WriteData(EntryImpl* entry,
+ int index,
+ int offset,
+ net::IOBuffer* buf,
+ int buf_len,
+ bool truncate);
+ void ReadSparseData(EntryImpl* entry,
+ int64 offset,
+ net::IOBuffer* buf,
int buf_len);
- void WriteSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf,
+ void WriteSparseData(EntryImpl* entry,
+ int64 offset,
+ net::IOBuffer* buf,
int buf_len);
void GetAvailableRange(EntryImpl* entry, int64 offset, int len, int64* start);
void CancelSparseIO(EntryImpl* entry);
@@ -152,9 +164,11 @@ class InFlightBackendIO : public InFlightIO {
// Proxied operations.
void Init(const net::CompletionCallback& callback);
- void OpenEntry(const std::string& key, Entry** entry,
+ void OpenEntry(const std::string& key,
+ Entry** entry,
const net::CompletionCallback& callback);
- void CreateEntry(const std::string& key, Entry** entry,
+ void CreateEntry(const std::string& key,
+ Entry** entry,
const net::CompletionCallback& callback);
void DoomEntry(const std::string& key,
const net::CompletionCallback& callback);
@@ -164,9 +178,11 @@ class InFlightBackendIO : public InFlightIO {
const net::CompletionCallback& callback);
void DoomEntriesSince(const base::Time initial_time,
const net::CompletionCallback& callback);
- void OpenNextEntry(void** iter, Entry** next_entry,
+ void OpenNextEntry(void** iter,
+ Entry** next_entry,
const net::CompletionCallback& callback);
- void OpenPrevEntry(void** iter, Entry** prev_entry,
+ void OpenPrevEntry(void** iter,
+ Entry** prev_entry,
const net::CompletionCallback& callback);
void EndEnumeration(void* iterator);
void OnExternalCacheHit(const std::string& key);
@@ -175,16 +191,33 @@ class InFlightBackendIO : public InFlightIO {
void FlushQueue(const net::CompletionCallback& callback);
void RunTask(const base::Closure& task,
const net::CompletionCallback& callback);
- void ReadData(EntryImpl* entry, int index, int offset, net::IOBuffer* buf,
- int buf_len, const net::CompletionCallback& callback);
- void WriteData(
- EntryImpl* entry, int index, int offset, net::IOBuffer* buf,
- int buf_len, bool truncate, const net::CompletionCallback& callback);
- void ReadSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf,
- int buf_len, const net::CompletionCallback& callback);
- void WriteSparseData(EntryImpl* entry, int64 offset, net::IOBuffer* buf,
- int buf_len, const net::CompletionCallback& callback);
- void GetAvailableRange(EntryImpl* entry, int64 offset, int len, int64* start,
+ void ReadData(EntryImpl* entry,
+ int index,
+ int offset,
+ net::IOBuffer* buf,
+ int buf_len,
+ const net::CompletionCallback& callback);
+ void WriteData(EntryImpl* entry,
+ int index,
+ int offset,
+ net::IOBuffer* buf,
+ int buf_len,
+ bool truncate,
+ const net::CompletionCallback& callback);
+ void ReadSparseData(EntryImpl* entry,
+ int64 offset,
+ net::IOBuffer* buf,
+ int buf_len,
+ const net::CompletionCallback& callback);
+ void WriteSparseData(EntryImpl* entry,
+ int64 offset,
+ net::IOBuffer* buf,
+ int buf_len,
+ const net::CompletionCallback& callback);
+ void GetAvailableRange(EntryImpl* entry,
+ int64 offset,
+ int len,
+ int64* start,
const net::CompletionCallback& callback);
void CancelSparseIO(EntryImpl* entry);
void ReadyForSparseIO(EntryImpl* entry,

Powered by Google App Engine
This is Rietveld 408576698