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

Unified Diff: net/disk_cache/simple/simple_entry_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_entry_impl.h
diff --git a/net/disk_cache/simple/simple_entry_impl.h b/net/disk_cache/simple/simple_entry_impl.h
index 2d78d8bfe0a04c984916d9b09e3ee7d208855cd0..385973ffc7cb14998977935ec8ea90753ff99185 100644
--- a/net/disk_cache/simple/simple_entry_impl.h
+++ b/net/disk_cache/simple/simple_entry_impl.h
@@ -39,10 +39,12 @@ struct SimpleEntryCreationResults;
// SimpleEntryImpl is the IO thread interface to an entry in the very simple
// disk cache. It proxies for the SimpleSynchronousEntry, which performs IO
// on the worker thread.
-class NET_EXPORT_PRIVATE SimpleEntryImpl : public Entry,
- public base::RefCounted<SimpleEntryImpl>,
- public base::SupportsWeakPtr<SimpleEntryImpl> {
+class NET_EXPORT_PRIVATE SimpleEntryImpl
+ : public Entry,
+ public base::RefCounted<SimpleEntryImpl>,
+ public base::SupportsWeakPtr<SimpleEntryImpl> {
friend class base::RefCounted<SimpleEntryImpl>;
+
public:
enum OperationsMode {
NON_OPTIMISTIC_OPERATIONS,
@@ -263,11 +265,10 @@ class NET_EXPORT_PRIVATE SimpleEntryImpl : public Entry,
// Called after validating the checksums on an entry. Passes through the
// original result if successful, propogates the error if the checksum does
// not validate.
- void ChecksumOperationComplete(
- int stream_index,
- int orig_result,
- const CompletionCallback& completion_callback,
- scoped_ptr<int> result);
+ void ChecksumOperationComplete(int stream_index,
+ int orig_result,
+ const CompletionCallback& completion_callback,
+ scoped_ptr<int> result);
// Called after completion of asynchronous IO and receiving file metadata for
// the entry in |entry_stat|. Updates the metadata in the entry and in the
@@ -287,7 +288,8 @@ class NET_EXPORT_PRIVATE SimpleEntryImpl : public Entry,
// |truncate| is set to true, the target buffer will be truncated at |offset|
// + |buf_len| before being written.
int SetStream0Data(net::IOBuffer* buf,
- int offset, int buf_len,
+ int offset,
+ int buf_len,
bool truncate);
// Updates |crc32s_| and |crc32s_end_offset_| for a write of the data in

Powered by Google App Engine
This is Rietveld 408576698