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

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

Issue 8086017: add more appcache_exports needed for test_shell_tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix weird merge issues Created 9 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_group.h ('k') | webkit/appcache/appcache_quota_client.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_HOST_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_HOST_H_
6 #define WEBKIT_APPCACHE_APPCACHE_HOST_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_HOST_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "webkit/appcache/appcache_group.h" 13 #include "webkit/appcache/appcache_group.h"
14 #include "webkit/appcache/appcache_interfaces.h" 14 #include "webkit/appcache/appcache_interfaces.h"
15 #include "webkit/appcache/appcache_export.h"
15 #include "webkit/appcache/appcache_service.h" 16 #include "webkit/appcache/appcache_service.h"
16 #include "webkit/appcache/appcache_storage.h" 17 #include "webkit/appcache/appcache_storage.h"
17 #include "webkit/glue/resource_type.h" 18 #include "webkit/glue/resource_type.h"
18 19
19 namespace net { 20 namespace net {
20 class URLRequest; 21 class URLRequest;
21 } // namespace net 22 } // namespace net
22 23
23 namespace appcache { 24 namespace appcache {
24 25
25 class AppCache; 26 class AppCache;
26 class AppCacheFrontend; 27 class AppCacheFrontend;
27 class AppCacheRequestHandler; 28 class AppCacheRequestHandler;
28 29
29 typedef Callback2<Status, void*>::Type GetStatusCallback; 30 typedef Callback2<Status, void*>::Type GetStatusCallback;
30 typedef Callback2<bool, void*>::Type StartUpdateCallback; 31 typedef Callback2<bool, void*>::Type StartUpdateCallback;
31 typedef Callback2<bool, void*>::Type SwapCacheCallback; 32 typedef Callback2<bool, void*>::Type SwapCacheCallback;
32 33
33 // Server-side representation of an application cache host. 34 // Server-side representation of an application cache host.
34 class AppCacheHost : public AppCacheStorage::Delegate, 35 class APPCACHE_EXPORT AppCacheHost : public AppCacheStorage::Delegate,
35 public AppCacheGroup::UpdateObserver { 36 public AppCacheGroup::UpdateObserver {
36 public: 37 public:
37 38
38 class Observer { 39 class APPCACHE_EXPORT Observer {
39 public: 40 public:
40 // Called just after the cache selection algorithm completes. 41 // Called just after the cache selection algorithm completes.
41 virtual void OnCacheSelectionComplete(AppCacheHost* host) = 0; 42 virtual void OnCacheSelectionComplete(AppCacheHost* host) = 0;
42 43
43 // Called just prior to the instance being deleted. 44 // Called just prior to the instance being deleted.
44 virtual void OnDestructionImminent(AppCacheHost* host) = 0; 45 virtual void OnDestructionImminent(AppCacheHost* host) = 0;
45 46
46 virtual ~Observer() {} 47 virtual ~Observer() {}
47 }; 48 };
48 49
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 FRIEND_TEST_ALL_PREFIXES(AppCacheHostTest, SelectCacheAllowed); 264 FRIEND_TEST_ALL_PREFIXES(AppCacheHostTest, SelectCacheAllowed);
264 FRIEND_TEST_ALL_PREFIXES(AppCacheHostTest, SelectCacheBlocked); 265 FRIEND_TEST_ALL_PREFIXES(AppCacheHostTest, SelectCacheBlocked);
265 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate); 266 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate);
266 267
267 DISALLOW_COPY_AND_ASSIGN(AppCacheHost); 268 DISALLOW_COPY_AND_ASSIGN(AppCacheHost);
268 }; 269 };
269 270
270 } // namespace appcache 271 } // namespace appcache
271 272
272 #endif // WEBKIT_APPCACHE_APPCACHE_HOST_H_ 273 #endif // WEBKIT_APPCACHE_APPCACHE_HOST_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_group.h ('k') | webkit/appcache/appcache_quota_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698