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 CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_ |
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_ | 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
115 AppCacheUpdateJob* update_job() { return update_job_; } | 115 AppCacheUpdateJob* update_job() { return update_job_; } |
116 void SetUpdateAppCacheStatus(UpdateAppCacheStatus status); | 116 void SetUpdateAppCacheStatus(UpdateAppCacheStatus status); |
117 | 117 |
118 void NotifyContentBlocked(); | 118 void NotifyContentBlocked(); |
119 | 119 |
120 const Caches& old_caches() const { return old_caches_; } | 120 const Caches& old_caches() const { return old_caches_; } |
121 | 121 |
122 // Update cannot be processed at this time. Queue it for a later run. | 122 // Update cannot be processed at this time. Queue it for a later run. |
123 void QueueUpdate(AppCacheHost* host, const GURL& new_master_resource); | 123 void QueueUpdate(AppCacheHost* host, const GURL& new_master_resource); |
124 void RunQueuedUpdates(); | 124 void RunQueuedUpdates(); |
125 bool FindObserver(UpdateObserver* find_me, | 125 static bool FindObserver(const UpdateObserver* find_me, |
Matt Giuca
2014/11/03 23:22:00
Note: I made this static as well (unrelated, but i
| |
126 const ObserverList<UpdateObserver>& observer_list); | 126 const ObserverList<UpdateObserver>& observer_list); |
127 void ScheduleUpdateRestart(int delay_ms); | 127 void ScheduleUpdateRestart(int delay_ms); |
128 void HostDestructionImminent(AppCacheHost* host); | 128 void HostDestructionImminent(AppCacheHost* host); |
129 | 129 |
130 const int64 group_id_; | 130 const int64 group_id_; |
131 const GURL manifest_url_; | 131 const GURL manifest_url_; |
132 base::Time creation_time_; | 132 base::Time creation_time_; |
133 UpdateAppCacheStatus update_status_; | 133 UpdateAppCacheStatus update_status_; |
134 bool is_obsolete_; | 134 bool is_obsolete_; |
135 bool is_being_deleted_; | 135 bool is_being_deleted_; |
136 std::vector<int64> newly_deletable_response_ids_; | 136 std::vector<int64> newly_deletable_response_ids_; |
(...skipping 27 matching lines...) Expand all Loading... | |
164 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate); | 164 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate); |
165 FRIEND_TEST_ALL_PREFIXES(content::AppCacheUpdateJobTest, AlreadyChecking); | 165 FRIEND_TEST_ALL_PREFIXES(content::AppCacheUpdateJobTest, AlreadyChecking); |
166 FRIEND_TEST_ALL_PREFIXES(content::AppCacheUpdateJobTest, AlreadyDownloading); | 166 FRIEND_TEST_ALL_PREFIXES(content::AppCacheUpdateJobTest, AlreadyDownloading); |
167 | 167 |
168 DISALLOW_COPY_AND_ASSIGN(AppCacheGroup); | 168 DISALLOW_COPY_AND_ASSIGN(AppCacheGroup); |
169 }; | 169 }; |
170 | 170 |
171 } // namespace content | 171 } // namespace content |
172 | 172 |
173 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_ | 173 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_ |
OLD | NEW |