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_UPDATE_JOB_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ |
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ | 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 void LogConsoleMessageToAll(const std::string& message); | 208 void LogConsoleMessageToAll(const std::string& message); |
209 void AddAllAssociatedHostsToNotifier(HostNotifier* notifier); | 209 void AddAllAssociatedHostsToNotifier(HostNotifier* notifier); |
210 | 210 |
211 // Checks if manifest is byte for byte identical with the manifest | 211 // Checks if manifest is byte for byte identical with the manifest |
212 // in the newest application cache. | 212 // in the newest application cache. |
213 void CheckIfManifestChanged(); | 213 void CheckIfManifestChanged(); |
214 void OnManifestDataReadComplete(int result); | 214 void OnManifestDataReadComplete(int result); |
215 | 215 |
216 // Creates the list of files that may need to be fetched and initiates | 216 // Creates the list of files that may need to be fetched and initiates |
217 // fetches. Section 6.9.4 steps 12-17 | 217 // fetches. Section 6.9.4 steps 12-17 |
218 void BuildUrlFileList(const Manifest& manifest); | 218 void BuildUrlFileList(const AppCacheManifest& manifest); |
219 void AddUrlToFileList(const GURL& url, int type); | 219 void AddUrlToFileList(const GURL& url, int type); |
220 void FetchUrls(); | 220 void FetchUrls(); |
221 void CancelAllUrlFetches(); | 221 void CancelAllUrlFetches(); |
222 bool ShouldSkipUrlFetch(const AppCacheEntry& entry); | 222 bool ShouldSkipUrlFetch(const AppCacheEntry& entry); |
223 | 223 |
224 // If entry already exists in the cache currently being updated, merge | 224 // If entry already exists in the cache currently being updated, merge |
225 // the entry type information with the existing entry. | 225 // the entry type information with the existing entry. |
226 // Returns true if entry exists in cache currently being updated. | 226 // Returns true if entry exists in cache currently being updated. |
227 bool AlreadyFetchedEntry(const GURL& url, int entry_type); | 227 bool AlreadyFetchedEntry(const GURL& url, int entry_type); |
228 | 228 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 AppCacheStorage* storage_; | 339 AppCacheStorage* storage_; |
340 | 340 |
341 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate); | 341 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate); |
342 | 342 |
343 DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob); | 343 DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob); |
344 }; | 344 }; |
345 | 345 |
346 } // namespace content | 346 } // namespace content |
347 | 347 |
348 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ | 348 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ |
OLD | NEW |