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 WEBKIT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ | 5 #ifndef WEBKIT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ |
6 #define WEBKIT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ | 6 #define WEBKIT_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> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
17 #include "net/base/completion_callback.h" | 17 #include "net/base/completion_callback.h" |
18 #include "net/http/http_response_headers.h" | 18 #include "net/http/http_response_headers.h" |
19 #include "net/url_request/url_request.h" | 19 #include "net/url_request/url_request.h" |
20 #include "webkit/browser/appcache/appcache.h" | 20 #include "webkit/browser/appcache/appcache.h" |
21 #include "webkit/browser/appcache/appcache_host.h" | 21 #include "webkit/browser/appcache/appcache_host.h" |
22 #include "webkit/browser/appcache/appcache_response.h" | 22 #include "webkit/browser/appcache/appcache_response.h" |
23 #include "webkit/browser/appcache/appcache_storage.h" | 23 #include "webkit/browser/appcache/appcache_storage.h" |
| 24 #include "webkit/browser/webkit_storage_browser_export.h" |
24 #include "webkit/common/appcache/appcache_interfaces.h" | 25 #include "webkit/common/appcache/appcache_interfaces.h" |
25 #include "webkit/storage/webkit_storage_export.h" | |
26 | 26 |
27 namespace appcache { | 27 namespace appcache { |
28 | 28 |
29 class HostNotifier; | 29 class HostNotifier; |
30 | 30 |
31 // Application cache Update algorithm and state. | 31 // Application cache Update algorithm and state. |
32 class WEBKIT_STORAGE_EXPORT AppCacheUpdateJob | 32 class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheUpdateJob |
33 : public AppCacheStorage::Delegate, | 33 : public AppCacheStorage::Delegate, |
34 public AppCacheHost::Observer { | 34 public AppCacheHost::Observer { |
35 public: | 35 public: |
36 AppCacheUpdateJob(AppCacheService* service, AppCacheGroup* group); | 36 AppCacheUpdateJob(AppCacheService* service, AppCacheGroup* group); |
37 virtual ~AppCacheUpdateJob(); | 37 virtual ~AppCacheUpdateJob(); |
38 | 38 |
39 // Triggers the update process or adds more info if this update is already | 39 // Triggers the update process or adds more info if this update is already |
40 // in progress. | 40 // in progress. |
41 void StartUpdate(AppCacheHost* host, const GURL& new_master_resource); | 41 void StartUpdate(AppCacheHost* host, const GURL& new_master_resource); |
42 | 42 |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 StoredState stored_state_; | 301 StoredState stored_state_; |
302 | 302 |
303 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate); | 303 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate); |
304 | 304 |
305 DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob); | 305 DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob); |
306 }; | 306 }; |
307 | 307 |
308 } // namespace appcache | 308 } // namespace appcache |
309 | 309 |
310 #endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ | 310 #endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_UPDATE_JOB_H_ |
OLD | NEW |