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

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

Issue 1100773004: base: Remove most uses of MessageLoopProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added some missing includes. Created 5 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
« no previous file with comments | « components/webdata/common/web_data_service_base.h ('k') | no next file » | 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 #include "net/disk_cache/simple/simple_entry_impl.h" 5 #include "net/disk_cache/simple/simple_entry_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cstring> 8 #include <cstring>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 DCHECK(!completion_callback.is_null()); 135 DCHECK(!completion_callback.is_null());
136 if (!backend.get()) 136 if (!backend.get())
137 return; 137 return;
138 completion_callback.Run(result); 138 completion_callback.Run(result);
139 } 139 }
140 140
141 } // namespace 141 } // namespace
142 142
143 using base::Closure; 143 using base::Closure;
144 using base::FilePath; 144 using base::FilePath;
145 using base::MessageLoopProxy;
146 using base::Time; 145 using base::Time;
147 using base::TaskRunner; 146 using base::TaskRunner;
148 147
149 // A helper class to insure that RunNextOperationIfNeeded() is called when 148 // A helper class to insure that RunNextOperationIfNeeded() is called when
150 // exiting the current stack frame. 149 // exiting the current stack frame.
151 class SimpleEntryImpl::ScopedOperationRunner { 150 class SimpleEntryImpl::ScopedOperationRunner {
152 public: 151 public:
153 explicit ScopedOperationRunner(SimpleEntryImpl* entry) : entry_(entry) { 152 explicit ScopedOperationRunner(SimpleEntryImpl* entry) : entry_(entry) {
154 } 153 }
155 154
(...skipping 1368 matching lines...) Expand 10 before | Expand all | Expand 10 after
1524 } 1523 }
1525 crc32s_end_offset_[stream_index] = offset + length; 1524 crc32s_end_offset_[stream_index] = offset + length;
1526 } else if (offset < crc32s_end_offset_[stream_index]) { 1525 } else if (offset < crc32s_end_offset_[stream_index]) {
1527 // If a range for which the crc32 was already computed is rewritten, the 1526 // If a range for which the crc32 was already computed is rewritten, the
1528 // computation of the crc32 need to start from 0 again. 1527 // computation of the crc32 need to start from 0 again.
1529 crc32s_end_offset_[stream_index] = 0; 1528 crc32s_end_offset_[stream_index] = 0;
1530 } 1529 }
1531 } 1530 }
1532 1531
1533 } // namespace disk_cache 1532 } // namespace disk_cache
OLDNEW
« no previous file with comments | « components/webdata/common/web_data_service_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698