OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_DISK_CACHE_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_DISK_CACHE_H_ |
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_DISK_CACHE_H_ | 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_DISK_CACHE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
| 10 #include <memory> |
10 #include <set> | 11 #include <set> |
11 #include <vector> | 12 #include <vector> |
12 | 13 |
13 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | |
15 #include "content/browser/appcache/appcache_response.h" | 15 #include "content/browser/appcache/appcache_response.h" |
16 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
17 #include "net/disk_cache/disk_cache.h" | 17 #include "net/disk_cache/disk_cache.h" |
18 | 18 |
19 namespace base { | 19 namespace base { |
20 class SingleThreadTaskRunner; | 20 class SingleThreadTaskRunner; |
21 } // namespace base | 21 } // namespace base |
22 | 22 |
23 namespace content { | 23 namespace content { |
24 | 24 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 void AddOpenEntry(EntryImpl* entry) { open_entries_.insert(entry); } | 113 void AddOpenEntry(EntryImpl* entry) { open_entries_.insert(entry); } |
114 void RemoveOpenEntry(EntryImpl* entry) { open_entries_.erase(entry); } | 114 void RemoveOpenEntry(EntryImpl* entry) { open_entries_.erase(entry); } |
115 | 115 |
116 bool use_simple_cache_; | 116 bool use_simple_cache_; |
117 bool is_disabled_; | 117 bool is_disabled_; |
118 bool is_waiting_to_initialize_; | 118 bool is_waiting_to_initialize_; |
119 net::CompletionCallback init_callback_; | 119 net::CompletionCallback init_callback_; |
120 scoped_refptr<CreateBackendCallbackShim> create_backend_callback_; | 120 scoped_refptr<CreateBackendCallbackShim> create_backend_callback_; |
121 PendingCalls pending_calls_; | 121 PendingCalls pending_calls_; |
122 OpenEntries open_entries_; | 122 OpenEntries open_entries_; |
123 scoped_ptr<disk_cache::Backend> disk_cache_; | 123 std::unique_ptr<disk_cache::Backend> disk_cache_; |
124 | 124 |
125 base::WeakPtrFactory<AppCacheDiskCache> weak_factory_; | 125 base::WeakPtrFactory<AppCacheDiskCache> weak_factory_; |
126 }; | 126 }; |
127 | 127 |
128 } // namespace content | 128 } // namespace content |
129 | 129 |
130 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_DISK_CACHE_H_ | 130 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_DISK_CACHE_H_ |
OLD | NEW |