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

Side by Side Diff: net/disk_cache/sparse_control.h

Issue 6613027: Adds memory cache logging, and updates disk cache logging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove pointless plumbing that forced matching begin/end events Created 9 years, 9 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 (c) 2009-2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009-2010 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_SPARSE_CONTROL_H_ 5 #ifndef NET_DISK_CACHE_SPARSE_CONTROL_H_
6 #define NET_DISK_CACHE_SPARSE_CONTROL_H_ 6 #define NET_DISK_CACHE_SPARSE_CONTROL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // Performs the required work after a single IO operations finishes. 138 // Performs the required work after a single IO operations finishes.
139 void DoChildIOCompleted(int result); 139 void DoChildIOCompleted(int result);
140 140
141 // Invoked by the callback of asynchronous operations. 141 // Invoked by the callback of asynchronous operations.
142 void OnChildIOCompleted(int result); 142 void OnChildIOCompleted(int result);
143 143
144 // Reports to the user that we are done. 144 // Reports to the user that we are done.
145 void DoUserCallback(); 145 void DoUserCallback();
146 void DoAbortCallbacks(); 146 void DoAbortCallbacks();
147 147
148 // Logs the end event for a current operation a child.
149 void LogChildOperationEnd(int result);
150
148 EntryImpl* entry_; // The sparse entry. 151 EntryImpl* entry_; // The sparse entry.
149 EntryImpl* child_; // The current child entry. 152 EntryImpl* child_; // The current child entry.
150 SparseOperation operation_; 153 SparseOperation operation_;
151 bool pending_; // True if any child IO operation returned pending. 154 bool pending_; // True if any child IO operation returned pending.
152 bool finished_; 155 bool finished_;
153 bool init_; 156 bool init_;
154 bool range_found_; // True if GetAvailableRange found something. 157 bool range_found_; // True if GetAvailableRange found something.
155 bool abort_; // True if we should abort the current operation ASAP. 158 bool abort_; // True if we should abort the current operation ASAP.
156 159
157 SparseHeader sparse_header_; // Data about the children of entry_. 160 SparseHeader sparse_header_; // Data about the children of entry_.
(...skipping 10 matching lines...) Expand all
168 int child_offset_; // Offset to use for the current child. 171 int child_offset_; // Offset to use for the current child.
169 int child_len_; // Bytes to read or write for this child. 172 int child_len_; // Bytes to read or write for this child.
170 int result_; 173 int result_;
171 174
172 DISALLOW_COPY_AND_ASSIGN(SparseControl); 175 DISALLOW_COPY_AND_ASSIGN(SparseControl);
173 }; 176 };
174 177
175 } // namespace disk_cache 178 } // namespace disk_cache
176 179
177 #endif // NET_DISK_CACHE_SPARSE_CONTROL_H_ 180 #endif // NET_DISK_CACHE_SPARSE_CONTROL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698