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

Side by Side Diff: net/disk_cache/simple/simple_entry_operation.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_OPERATION_H_ 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_OPERATION_H_
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_OPERATION_H_ 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_OPERATION_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "net/base/completion_callback.h" 9 #include "net/base/completion_callback.h"
10 #include "net/base/net_log.h" 10 #include "net/base/net_log.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 int64 sparse_offset, 77 int64 sparse_offset,
78 int length, 78 int length,
79 net::IOBuffer* buf, 79 net::IOBuffer* buf,
80 const CompletionCallback& callback); 80 const CompletionCallback& callback);
81 static SimpleEntryOperation GetAvailableRangeOperation( 81 static SimpleEntryOperation GetAvailableRangeOperation(
82 SimpleEntryImpl* entry, 82 SimpleEntryImpl* entry,
83 int64 sparse_offset, 83 int64 sparse_offset,
84 int length, 84 int length,
85 int64* out_start, 85 int64* out_start,
86 const CompletionCallback& callback); 86 const CompletionCallback& callback);
87 static SimpleEntryOperation DoomOperation( 87 static SimpleEntryOperation DoomOperation(SimpleEntryImpl* entry,
88 SimpleEntryImpl* entry, 88 const CompletionCallback& callback);
89 const CompletionCallback& callback);
90 89
91 bool ConflictsWith(const SimpleEntryOperation& other_op) const; 90 bool ConflictsWith(const SimpleEntryOperation& other_op) const;
92 // Releases all references. After calling this operation, SimpleEntryOperation 91 // Releases all references. After calling this operation, SimpleEntryOperation
93 // will only hold POD members. 92 // will only hold POD members.
94 void ReleaseReferences(); 93 void ReleaseReferences();
95 94
96 EntryOperationType type() const { 95 EntryOperationType type() const {
97 return static_cast<EntryOperationType>(type_); 96 return static_cast<EntryOperationType>(type_);
98 } 97 }
99 const CompletionCallback& callback() const { return callback_; } 98 const CompletionCallback& callback() const { return callback_; }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // Used only in write operations. 148 // Used only in write operations.
150 const bool truncate_; 149 const bool truncate_;
151 const bool optimistic_; 150 const bool optimistic_;
152 // Used only in SimpleCache.ReadIsParallelizable histogram. 151 // Used only in SimpleCache.ReadIsParallelizable histogram.
153 const bool alone_in_queue_; 152 const bool alone_in_queue_;
154 }; 153 };
155 154
156 } // namespace disk_cache 155 } // namespace disk_cache
157 156
158 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_OPERATION_H_ 157 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_OPERATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698