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

Side by Side Diff: webkit/browser/appcache/appcache_group.h

Issue 16701004: Fix webkit_storage exports definitions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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/browser/appcache/appcache_disk_cache.h ('k') | webkit/browser/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_BROWSER_APPCACHE_APPCACHE_GROUP_H_ 5 #ifndef WEBKIT_BROWSER_APPCACHE_APPCACHE_GROUP_H_
6 #define WEBKIT_BROWSER_APPCACHE_APPCACHE_GROUP_H_ 6 #define WEBKIT_BROWSER_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/storage/webkit_storage_export.h" 18 #include "webkit/browser/webkit_storage_browser_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 AppCacheStorage; 24 class AppCacheStorage;
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 WEBKIT_STORAGE_EXPORT AppCacheGroup 30 class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheGroup
31 : public base::RefCounted<AppCacheGroup> { 31 : public base::RefCounted<AppCacheGroup> {
32 public: 32 public:
33 33
34 class WEBKIT_STORAGE_EXPORT UpdateObserver { 34 class WEBKIT_STORAGE_BROWSER_EXPORT UpdateObserver {
35 public: 35 public:
36 // Called just after an appcache update has completed. 36 // Called just after an appcache update has completed.
37 virtual void OnUpdateComplete(AppCacheGroup* group) = 0; 37 virtual void OnUpdateComplete(AppCacheGroup* group) = 0;
38 virtual ~UpdateObserver() {} 38 virtual ~UpdateObserver() {}
39 }; 39 };
40 40
41 enum UpdateStatus { 41 enum UpdateStatus {
42 IDLE, 42 IDLE,
43 CHECKING, 43 CHECKING,
44 DOWNLOADING, 44 DOWNLOADING,
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate); 158 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate);
159 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyChecking); 159 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyChecking);
160 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyDownloading); 160 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyDownloading);
161 161
162 DISALLOW_COPY_AND_ASSIGN(AppCacheGroup); 162 DISALLOW_COPY_AND_ASSIGN(AppCacheGroup);
163 }; 163 };
164 164
165 } // namespace appcache 165 } // namespace appcache
166 166
167 #endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_GROUP_H_ 167 #endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_GROUP_H_
OLDNEW
« no previous file with comments | « webkit/browser/appcache/appcache_disk_cache.h ('k') | webkit/browser/appcache/appcache_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698