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

Side by Side Diff: webkit/appcache/appcache_group.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_frontend_impl.h ('k') | webkit/appcache/appcache_host.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) 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 WEBKIT_APPCACHE_APPCACHE_GROUP_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_GROUP_H_
6 #define WEBKIT_APPCACHE_APPCACHE_GROUP_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_GROUP_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/cancelable_callback.h" 11 #include "base/cancelable_callback.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 #include "webkit/appcache/appcache_export.h" 18 #include "webkit/storage/webkit_storage_export.h"
19 19
20 namespace appcache { 20 namespace appcache {
21 21
22 class AppCache; 22 class AppCache;
23 class AppCacheHost; 23 class AppCacheHost;
24 class AppCacheService; 24 class AppCacheService;
25 class AppCacheUpdateJob; 25 class AppCacheUpdateJob;
26 class HostObserver; 26 class HostObserver;
27 27
28 // Collection of application caches identified by the same manifest URL. 28 // Collection of application caches identified by the same manifest URL.
29 // A group exists as long as it is in use by a host or is being updated. 29 // A group exists as long as it is in use by a host or is being updated.
30 class APPCACHE_EXPORT AppCacheGroup : public base::RefCounted<AppCacheGroup> { 30 class WEBKIT_STORAGE_EXPORT AppCacheGroup
31 : public base::RefCounted<AppCacheGroup> {
31 public: 32 public:
32 33
33 class APPCACHE_EXPORT UpdateObserver { 34 class WEBKIT_STORAGE_EXPORT UpdateObserver {
34 public: 35 public:
35 // Called just after an appcache update has completed. 36 // Called just after an appcache update has completed.
36 virtual void OnUpdateComplete(AppCacheGroup* group) = 0; 37 virtual void OnUpdateComplete(AppCacheGroup* group) = 0;
37 virtual ~UpdateObserver() {} 38 virtual ~UpdateObserver() {}
38 }; 39 };
39 40
40 enum UpdateStatus { 41 enum UpdateStatus {
41 IDLE, 42 IDLE,
42 CHECKING, 43 CHECKING,
43 DOWNLOADING, 44 DOWNLOADING,
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate); 158 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate);
158 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyChecking); 159 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyChecking);
159 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyDownloading); 160 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyDownloading);
160 161
161 DISALLOW_COPY_AND_ASSIGN(AppCacheGroup); 162 DISALLOW_COPY_AND_ASSIGN(AppCacheGroup);
162 }; 163 };
163 164
164 } // namespace appcache 165 } // namespace appcache
165 166
166 #endif // WEBKIT_APPCACHE_APPCACHE_GROUP_H_ 167 #endif // WEBKIT_APPCACHE_APPCACHE_GROUP_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_frontend_impl.h ('k') | webkit/appcache/appcache_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698