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

Unified Diff: net/disk_cache/disk_cache.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/disk_cache.h
diff --git a/net/disk_cache/disk_cache.h b/net/disk_cache/disk_cache.h
index 3ae8bf4369b14858742d20d1cfc1f63e14955e92..487b391786dc8c03a65069737d0c2b5fd2a9db52 100644
--- a/net/disk_cache/disk_cache.h
+++ b/net/disk_cache/disk_cache.h
@@ -82,7 +82,8 @@ class NET_EXPORT Backend {
// a net error code. If this method returns ERR_IO_PENDING, the |callback|
// will be invoked when the entry is available. The pointer to receive the
// |entry| must remain valid until the operation completes.
- virtual int OpenEntry(const std::string& key, Entry** entry,
+ virtual int OpenEntry(const std::string& key,
+ Entry** entry,
const CompletionCallback& callback) = 0;
// Creates a new entry. Upon success, the out param holds a pointer to an
@@ -91,7 +92,8 @@ class NET_EXPORT Backend {
// return value is a net error code. If this method returns ERR_IO_PENDING,
// the |callback| will be invoked when the entry is available. The pointer to
// receive the |entry| must remain valid until the operation completes.
- virtual int CreateEntry(const std::string& key, Entry** entry,
+ virtual int CreateEntry(const std::string& key,
+ Entry** entry,
const CompletionCallback& callback) = 0;
// Marks the entry, specified by the given key, for deletion. The return value
@@ -136,7 +138,8 @@ class NET_EXPORT Backend {
// altering the entry pointed by |iter| (for example, deleting the entry) will
// invalidate |iter|. Performing operations on an entry that modify the entry
// may result in loops in the iteration, skipped entries or similar.
- virtual int OpenNextEntry(void** iter, Entry** next_entry,
+ virtual int OpenNextEntry(void** iter,
+ Entry** next_entry,
const CompletionCallback& callback) = 0;
// Releases iter without returning the next entry. Whenever OpenNextEntry()
@@ -189,7 +192,10 @@ class NET_EXPORT Entry {
// after Close has been called; in other words, the caller may close this
// entry without having to wait for all the callbacks, and still rely on the
// cleanup performed from the callback code.
- virtual int ReadData(int index, int offset, IOBuffer* buf, int buf_len,
+ virtual int ReadData(int index,
+ int offset,
+ IOBuffer* buf,
+ int buf_len,
const CompletionCallback& callback) = 0;
// Copies data from the given buffer of length |buf_len| into the cache.
@@ -203,7 +209,10 @@ class NET_EXPORT Entry {
// rely on the cleanup performed from the callback code.
// If truncate is true, this call will truncate the stored data at the end of
// what we are writing here.
- virtual int WriteData(int index, int offset, IOBuffer* buf, int buf_len,
+ virtual int WriteData(int index,
+ int offset,
+ IOBuffer* buf,
+ int buf_len,
const CompletionCallback& callback,
bool truncate) = 0;
@@ -251,7 +260,9 @@ class NET_EXPORT Entry {
// Behaves like ReadData() except that this method is used to access sparse
// entries.
- virtual int ReadSparseData(int64 offset, IOBuffer* buf, int buf_len,
+ virtual int ReadSparseData(int64 offset,
+ IOBuffer* buf,
+ int buf_len,
const CompletionCallback& callback) = 0;
// Behaves like WriteData() except that this method is used to access sparse
@@ -260,7 +271,9 @@ class NET_EXPORT Entry {
// start again, or to reduce the total size of the stream data (which implies
// that the content has changed), the whole entry should be doomed and
// re-created.
- virtual int WriteSparseData(int64 offset, IOBuffer* buf, int buf_len,
+ virtual int WriteSparseData(int64 offset,
+ IOBuffer* buf,
+ int buf_len,
const CompletionCallback& callback) = 0;
// Returns information about the currently stored portion of a sparse entry.
@@ -272,7 +285,9 @@ class NET_EXPORT Entry {
// net error code whenever the request cannot be completed successfully. If
// this method returns ERR_IO_PENDING, the |callback| will be invoked when the
// operation completes, and |start| must remain valid until that point.
- virtual int GetAvailableRange(int64 offset, int len, int64* start,
+ virtual int GetAvailableRange(int64 offset,
+ int len,
+ int64* start,
const CompletionCallback& callback) = 0;
// Returns true if this entry could be a sparse entry or false otherwise. This

Powered by Google App Engine
This is Rietveld 408576698