| 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 12 matching lines...) Expand all Loading... |
| 23 #include "content/common/content_export.h" | 23 #include "content/common/content_export.h" |
| 24 #include "net/base/completion_callback.h" | 24 #include "net/base/completion_callback.h" |
| 25 #include "net/http/http_response_headers.h" | 25 #include "net/http/http_response_headers.h" |
| 26 #include "net/url_request/url_request.h" | 26 #include "net/url_request/url_request.h" |
| 27 #include "url/gurl.h" | 27 #include "url/gurl.h" |
| 28 | 28 |
| 29 namespace content { | 29 namespace content { |
| 30 FORWARD_DECLARE_TEST(AppCacheGroupTest, QueueUpdate); | 30 FORWARD_DECLARE_TEST(AppCacheGroupTest, QueueUpdate); |
| 31 class AppCacheGroupTest; | 31 class AppCacheGroupTest; |
| 32 class AppCacheUpdateJobTest; | 32 class AppCacheUpdateJobTest; |
| 33 } | |
| 34 | |
| 35 namespace content { | |
| 36 | |
| 37 class HostNotifier; | 33 class HostNotifier; |
| 38 | 34 |
| 39 // Application cache Update algorithm and state. | 35 // Application cache Update algorithm and state. |
| 40 class CONTENT_EXPORT AppCacheUpdateJob | 36 class CONTENT_EXPORT AppCacheUpdateJob |
| 41 : public AppCacheStorage::Delegate, | 37 : public AppCacheStorage::Delegate, |
| 42 public AppCacheHost::Observer, | 38 public AppCacheHost::Observer, |
| 43 public AppCacheServiceImpl::Observer { | 39 public AppCacheServiceImpl::Observer { |
| 44 public: | 40 public: |
| 45 // Used for uma stats only for now, so new values are append only. | 41 // Used for uma stats only for now, so new values are append only. |
| 46 enum ResultType { | 42 enum ResultType { |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 AppCacheStorage* storage_; | 339 AppCacheStorage* storage_; |
| 344 | 340 |
| 345 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate); | 341 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate); |
| 346 | 342 |
| 347 DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob); | 343 DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob); |
| 348 }; | 344 }; |
| 349 | 345 |
| 350 } // namespace content | 346 } // namespace content |
| 351 | 347 |
| 352 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ | 348 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ |
| OLD | NEW |