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

Side by Side Diff: webkit/appcache/appcache_storage.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_response.h ('k') | webkit/appcache/appcache_update_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) 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_STORAGE_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_STORAGE_H_
6 #define WEBKIT_APPCACHE_APPCACHE_STORAGE_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_STORAGE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "net/base/completion_callback.h" 16 #include "net/base/completion_callback.h"
17 #include "webkit/appcache/appcache_export.h"
17 #include "webkit/appcache/appcache_working_set.h" 18 #include "webkit/appcache/appcache_working_set.h"
18 19
19 class GURL; 20 class GURL;
20 21
21 namespace appcache { 22 namespace appcache {
22 23
23 class AppCache; 24 class AppCache;
24 class AppCacheEntry; 25 class AppCacheEntry;
25 class AppCacheGroup; 26 class AppCacheGroup;
26 class AppCacheResponseReader; 27 class AppCacheResponseReader;
27 class AppCacheResponseWriter; 28 class AppCacheResponseWriter;
28 class AppCacheService; 29 class AppCacheService;
29 struct AppCacheInfoCollection; 30 struct AppCacheInfoCollection;
30 struct HttpResponseInfoIOBuffer; 31 struct HttpResponseInfoIOBuffer;
31 32
32 class AppCacheStorage { 33 class APPCACHE_EXPORT AppCacheStorage {
33 public: 34 public:
34 typedef std::map<GURL, int64> UsageMap; 35 typedef std::map<GURL, int64> UsageMap;
35 36
36 class Delegate { 37 class APPCACHE_EXPORT Delegate {
37 public: 38 public:
38 virtual ~Delegate() {} 39 virtual ~Delegate() {}
39 40
40 // If retrieval fails, 'collection' will be NULL. 41 // If retrieval fails, 'collection' will be NULL.
41 virtual void OnAllInfo(AppCacheInfoCollection* collection) {} 42 virtual void OnAllInfo(AppCacheInfoCollection* collection) {}
42 43
43 // If a load fails the 'cache' will be NULL. 44 // If a load fails the 'cache' will be NULL.
44 virtual void OnCacheLoaded(AppCache* cache, int64 cache_id) {} 45 virtual void OnCacheLoaded(AppCache* cache, int64 cache_id) {}
45 46
46 // If a load fails the 'group' will be NULL. 47 // If a load fails the 'group' will be NULL.
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, DelegateReferences); 307 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, DelegateReferences);
307 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, UsageMap); 308 FRIEND_TEST_ALL_PREFIXES(AppCacheStorageTest, UsageMap);
308 309
309 DISALLOW_COPY_AND_ASSIGN(AppCacheStorage); 310 DISALLOW_COPY_AND_ASSIGN(AppCacheStorage);
310 }; 311 };
311 312
312 } // namespace appcache 313 } // namespace appcache
313 314
314 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_H_ 315 #endif // WEBKIT_APPCACHE_APPCACHE_STORAGE_H_
315 316
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_response.h ('k') | webkit/appcache/appcache_update_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698