| OLD | NEW |
| 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 WEBKIT_APPCACHE_APPCACHE_GROUP_H_ | 5 #ifndef WEBKIT_APPCACHE_APPCACHE_GROUP_H_ |
| 6 #define WEBKIT_APPCACHE_APPCACHE_GROUP_H_ | 6 #define WEBKIT_APPCACHE_APPCACHE_GROUP_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 140 |
| 141 // Central service object. | 141 // Central service object. |
| 142 AppCacheService* service_; | 142 AppCacheService* service_; |
| 143 | 143 |
| 144 // List of objects observing this group. | 144 // List of objects observing this group. |
| 145 ObserverList<UpdateObserver> observers_; | 145 ObserverList<UpdateObserver> observers_; |
| 146 | 146 |
| 147 // Updates that have been queued for the next run. | 147 // Updates that have been queued for the next run. |
| 148 QueuedUpdates queued_updates_; | 148 QueuedUpdates queued_updates_; |
| 149 ObserverList<UpdateObserver> queued_observers_; | 149 ObserverList<UpdateObserver> queued_observers_; |
| 150 base::CancelableCallback restart_update_task_; | 150 base::CancelableClosure restart_update_task_; |
| 151 scoped_ptr<HostObserver> host_observer_; | 151 scoped_ptr<HostObserver> host_observer_; |
| 152 | 152 |
| 153 // True if we're in our destructor. | 153 // True if we're in our destructor. |
| 154 bool is_in_dtor_; | 154 bool is_in_dtor_; |
| 155 | 155 |
| 156 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, StartUpdate); | 156 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, StartUpdate); |
| 157 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, CancelUpdate); | 157 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, CancelUpdate); |
| 158 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate); | 158 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate); |
| 159 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyChecking); | 159 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyChecking); |
| 160 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyDownloading); | 160 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyDownloading); |
| 161 | 161 |
| 162 DISALLOW_COPY_AND_ASSIGN(AppCacheGroup); | 162 DISALLOW_COPY_AND_ASSIGN(AppCacheGroup); |
| 163 }; | 163 }; |
| 164 | 164 |
| 165 } // namespace appcache | 165 } // namespace appcache |
| 166 | 166 |
| 167 #endif // WEBKIT_APPCACHE_APPCACHE_GROUP_H_ | 167 #endif // WEBKIT_APPCACHE_APPCACHE_GROUP_H_ |
| OLD | NEW |