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

Side by Side Diff: content/browser/appcache/appcache_storage_impl.h

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 bool did_start_deleting_responses_; 173 bool did_start_deleting_responses_;
174 int64_t last_deletable_response_rowid_; 174 int64_t last_deletable_response_rowid_;
175 175
176 // Created on the IO thread, but only used on the DB thread. 176 // Created on the IO thread, but only used on the DB thread.
177 AppCacheDatabase* database_; 177 AppCacheDatabase* database_;
178 178
179 // Set if we discover a fatal error like a corrupt SQL database or 179 // Set if we discover a fatal error like a corrupt SQL database or
180 // disk cache and cannot continue. 180 // disk cache and cannot continue.
181 bool is_disabled_; 181 bool is_disabled_;
182 182
183 scoped_ptr<AppCacheDiskCache> disk_cache_; 183 std::unique_ptr<AppCacheDiskCache> disk_cache_;
184 base::OneShotTimer lazy_commit_timer_; 184 base::OneShotTimer lazy_commit_timer_;
185 185
186 // Used to short-circuit certain operations without having to schedule 186 // Used to short-circuit certain operations without having to schedule
187 // any tasks on the background database thread. 187 // any tasks on the background database thread.
188 std::deque<base::Closure> pending_simple_tasks_; 188 std::deque<base::Closure> pending_simple_tasks_;
189 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_; 189 base::WeakPtrFactory<AppCacheStorageImpl> weak_factory_;
190 190
191 friend class content::AppCacheStorageImplTest; 191 friend class content::AppCacheStorageImplTest;
192 friend class content::ChromeAppCacheServiceTest; 192 friend class content::ChromeAppCacheServiceTest;
193 }; 193 };
194 194
195 } // namespace content 195 } // namespace content
196 196
197 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_ 197 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_storage.h ('k') | content/browser/appcache/appcache_storage_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698