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

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

Issue 12223075: Make SimpleEntryImpl::Doom() completely asynchronous. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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
« no previous file with comments | « no previous file | net/disk_cache/simple/simple_entry_impl.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_ENTRY_IMPL_H_ 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_ 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 int32 data_size_[kSimpleEntryFileCount]; 114 int32 data_size_[kSimpleEntryFileCount];
115 115
116 // The |synchronous_entry_| is the worker thread object that performs IO on 116 // The |synchronous_entry_| is the worker thread object that performs IO on
117 // entries. 117 // entries.
118 SimpleSynchronousEntry* synchronous_entry_; 118 SimpleSynchronousEntry* synchronous_entry_;
119 119
120 // Set to true when a worker operation is posted on the |synchronous_entry_|, 120 // Set to true when a worker operation is posted on the |synchronous_entry_|,
121 // and false after. Used to insure thread safety by not allowing multiple 121 // and false after. Used to insure thread safety by not allowing multiple
122 // threads to access the |synchronous_entry_| simultaneously. 122 // threads to access the |synchronous_entry_| simultaneously.
123 bool synchronous_entry_in_use_by_worker_; 123 bool synchronous_entry_in_use_by_worker_;
124
125 bool has_been_doomed_;
126 }; 124 };
127 125
128 } // namespace disk_cache 126 } // namespace disk_cache
129 127
130 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_ 128 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_ENTRY_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | net/disk_cache/simple/simple_entry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698