OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SERVICE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_ |
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_ | 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 namespace net { | 24 namespace net { |
25 class URLRequestContext; | 25 class URLRequestContext; |
26 } // namespace net | 26 } // namespace net |
27 | 27 |
28 namespace base { | 28 namespace base { |
29 class FilePath; | 29 class FilePath; |
30 class MessageLoopProxy; | 30 class MessageLoopProxy; |
31 } | 31 } |
32 | 32 |
33 namespace content { | |
34 FORWARD_DECLARE_TEST(AppCacheServiceImplTest, ScheduleReinitialize); | |
35 class AppCacheServiceImplTest; | |
36 class AppCacheStorageImplTest; | |
37 } | |
38 | |
39 namespace quota { | 33 namespace quota { |
40 class SpecialStoragePolicy; | 34 class SpecialStoragePolicy; |
41 } | 35 } |
42 | 36 |
43 namespace content { | 37 namespace content { |
44 | 38 FORWARD_DECLARE_TEST(AppCacheServiceImplTest, ScheduleReinitialize); |
45 class AppCacheBackendImpl; | 39 class AppCacheBackendImpl; |
46 class AppCacheExecutableHandlerFactory; | 40 class AppCacheExecutableHandlerFactory; |
47 class AppCacheQuotaClient; | 41 class AppCacheQuotaClient; |
48 class AppCachePolicy; | 42 class AppCachePolicy; |
| 43 class AppCacheServiceImplTest; |
| 44 class AppCacheStorageImplTest; |
49 class AppCacheStorage; | 45 class AppCacheStorage; |
50 | 46 |
51 // Refcounted container to manage the lifetime of the old storage instance | 47 // Refcounted container to manage the lifetime of the old storage instance |
52 // during Reinitialization. | 48 // during Reinitialization. |
53 class CONTENT_EXPORT AppCacheStorageReference | 49 class CONTENT_EXPORT AppCacheStorageReference |
54 : public base::RefCounted<AppCacheStorageReference> { | 50 : public base::RefCounted<AppCacheStorageReference> { |
55 public: | 51 public: |
56 AppCacheStorage* storage() const { return storage_.get(); } | 52 AppCacheStorage* storage() const { return storage_.get(); } |
57 private: | 53 private: |
58 friend class AppCacheServiceImpl; | 54 friend class AppCacheServiceImpl; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 base::TimeDelta next_reinit_delay_; | 214 base::TimeDelta next_reinit_delay_; |
219 base::OneShotTimer<AppCacheServiceImpl> reinit_timer_; | 215 base::OneShotTimer<AppCacheServiceImpl> reinit_timer_; |
220 ObserverList<Observer> observers_; | 216 ObserverList<Observer> observers_; |
221 | 217 |
222 DISALLOW_COPY_AND_ASSIGN(AppCacheServiceImpl); | 218 DISALLOW_COPY_AND_ASSIGN(AppCacheServiceImpl); |
223 }; | 219 }; |
224 | 220 |
225 } // namespace content | 221 } // namespace content |
226 | 222 |
227 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_ | 223 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_ |
OLD | NEW |