Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: webkit/appcache/appcache_update_job.h

Issue 11230022: webkit: Merge build target 'appcache' to 'webkit_storage' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: _ Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/appcache/appcache_storage_impl.h ('k') | webkit/appcache/appcache_url_request_job.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_APPCACHE_APPCACHE_UPDATE_JOB_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_UPDATE_JOB_H_
6 #define WEBKIT_APPCACHE_APPCACHE_UPDATE_JOB_H_ 6 #define WEBKIT_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/appcache/appcache.h" 20 #include "webkit/appcache/appcache.h"
21 #include "webkit/appcache/appcache_export.h"
22 #include "webkit/appcache/appcache_host.h" 21 #include "webkit/appcache/appcache_host.h"
23 #include "webkit/appcache/appcache_interfaces.h" 22 #include "webkit/appcache/appcache_interfaces.h"
24 #include "webkit/appcache/appcache_response.h" 23 #include "webkit/appcache/appcache_response.h"
25 #include "webkit/appcache/appcache_storage.h" 24 #include "webkit/appcache/appcache_storage.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 APPCACHE_EXPORT AppCacheUpdateJob : public AppCacheStorage::Delegate, 32 class WEBKIT_STORAGE_EXPORT AppCacheUpdateJob
33 public AppCacheHost::Observer { 33 : public AppCacheStorage::Delegate,
34 public AppCacheHost::Observer {
34 public: 35 public:
35 AppCacheUpdateJob(AppCacheService* service, AppCacheGroup* group); 36 AppCacheUpdateJob(AppCacheService* service, AppCacheGroup* group);
36 virtual ~AppCacheUpdateJob(); 37 virtual ~AppCacheUpdateJob();
37 38
38 // 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
39 // in progress. 40 // in progress.
40 void StartUpdate(AppCacheHost* host, const GURL& new_master_resource); 41 void StartUpdate(AppCacheHost* host, const GURL& new_master_resource);
41 42
42 private: 43 private:
43 friend class AppCacheUpdateJobTest; 44 friend class AppCacheUpdateJobTest;
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 StoredState stored_state_; 301 StoredState stored_state_;
301 302
302 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate); 303 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate);
303 304
304 DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob); 305 DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob);
305 }; 306 };
306 307
307 } // namespace appcache 308 } // namespace appcache
308 309
309 #endif // WEBKIT_APPCACHE_APPCACHE_UPDATE_JOB_H_ 310 #endif // WEBKIT_APPCACHE_APPCACHE_UPDATE_JOB_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_storage_impl.h ('k') | webkit/appcache/appcache_url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698