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

Side by Side Diff: net/disk_cache/simple/simple_synchronous_entry.h

Issue 24400004: Simple Cache: Add two optional stream 2 histograms (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | net/disk_cache/simple/simple_synchronous_entry.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_SYNCHRONOUS_ENTRY_H_ 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_ 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 std::string key_; 243 std::string key_;
244 244
245 bool have_open_files_; 245 bool have_open_files_;
246 bool initialized_; 246 bool initialized_;
247 247
248 base::PlatformFile files_[kSimpleEntryFileCount]; 248 base::PlatformFile files_[kSimpleEntryFileCount];
249 249
250 // True if the corresponding stream is empty and therefore no on-disk file 250 // True if the corresponding stream is empty and therefore no on-disk file
251 // was created to store it. 251 // was created to store it.
252 bool empty_file_omitted_[kSimpleEntryFileCount]; 252 bool empty_file_omitted_[kSimpleEntryFileCount];
253
254 // True if the entry was created, or false if it was opened. (Used to log
gavinp 2013/09/24 21:15:42 Nit: no need for the parens, and only one space af
Deprecated (see juliatuttle) 2013/09/24 23:28:53 Done. Everywhere in net/disk_cache/simple.
255 // SimpleCache.*.EntryCreatedWithStream2Omitted only for created entries.)
256 bool files_created_;
253 }; 257 };
254 258
255 } // namespace disk_cache 259 } // namespace disk_cache
256 260
257 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_ 261 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_SYNCHRONOUS_ENTRY_H_
OLDNEW
« no previous file with comments | « no previous file | net/disk_cache/simple/simple_synchronous_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698