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

Side by Side Diff: content/browser/appcache/appcache_storage.h

Issue 344493002: Move all remaining appcache-related code to content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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
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_BROWSER_APPCACHE_APPCACHE_STORAGE_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_H_
6 #define WEBKIT_BROWSER_APPCACHE_APPCACHE_STORAGE_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.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 "content/browser/appcache/appcache_working_set.h"
17 #include "content/common/content_export.h"
16 #include "net/base/completion_callback.h" 18 #include "net/base/completion_callback.h"
17 #include "webkit/browser/appcache/appcache_working_set.h"
18 #include "webkit/browser/webkit_storage_browser_export.h"
19 19
20 class GURL; 20 class GURL;
21 21
22 namespace content { 22 namespace content {
23 FORWARD_DECLARE_TEST(AppCacheStorageTest, DelegateReferences); 23 FORWARD_DECLARE_TEST(AppCacheStorageTest, DelegateReferences);
24 FORWARD_DECLARE_TEST(AppCacheStorageTest, UsageMap); 24 FORWARD_DECLARE_TEST(AppCacheStorageTest, UsageMap);
25 class AppCacheQuotaClientTest; 25 class AppCacheQuotaClientTest;
26 class AppCacheResponseTest; 26 class AppCacheResponseTest;
27 class AppCacheStorageTest; 27 class AppCacheStorageTest;
28 } 28 }
29 29
30 namespace appcache { 30 namespace content {
31 31
32 class AppCache; 32 class AppCache;
33 class AppCacheEntry; 33 class AppCacheEntry;
34 class AppCacheGroup; 34 class AppCacheGroup;
35 class AppCacheResponseReader; 35 class AppCacheResponseReader;
36 class AppCacheResponseWriter; 36 class AppCacheResponseWriter;
37 class AppCacheServiceImpl; 37 class AppCacheServiceImpl;
38 struct AppCacheInfoCollection; 38 struct AppCacheInfoCollection;
39 struct HttpResponseInfoIOBuffer; 39 struct HttpResponseInfoIOBuffer;
40 40
41 class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheStorage { 41 class CONTENT_EXPORT AppCacheStorage {
42 public: 42 public:
43 typedef std::map<GURL, int64> UsageMap; 43 typedef std::map<GURL, int64> UsageMap;
44 44
45 class WEBKIT_STORAGE_BROWSER_EXPORT Delegate { 45 class CONTENT_EXPORT Delegate {
46 public: 46 public:
47 // If retrieval fails, 'collection' will be NULL. 47 // If retrieval fails, 'collection' will be NULL.
48 virtual void OnAllInfo(AppCacheInfoCollection* collection) {} 48 virtual void OnAllInfo(AppCacheInfoCollection* collection) {}
49 49
50 // If a load fails the 'cache' will be NULL. 50 // If a load fails the 'cache' will be NULL.
51 virtual void OnCacheLoaded(AppCache* cache, int64 cache_id) {} 51 virtual void OnCacheLoaded(AppCache* cache, int64 cache_id) {}
52 52
53 // If a load fails the 'group' will be NULL. 53 // If a load fails the 'group' will be NULL.
54 virtual void OnGroupLoaded( 54 virtual void OnGroupLoaded(
55 AppCacheGroup* group, const GURL& manifest_url) {} 55 AppCacheGroup* group, const GURL& manifest_url) {}
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 318
319 // The set of last ids must be retrieved from storage prior to being used. 319 // The set of last ids must be retrieved from storage prior to being used.
320 static const int64 kUnitializedId; 320 static const int64 kUnitializedId;
321 321
322 FRIEND_TEST_ALL_PREFIXES(content::AppCacheStorageTest, DelegateReferences); 322 FRIEND_TEST_ALL_PREFIXES(content::AppCacheStorageTest, DelegateReferences);
323 FRIEND_TEST_ALL_PREFIXES(content::AppCacheStorageTest, UsageMap); 323 FRIEND_TEST_ALL_PREFIXES(content::AppCacheStorageTest, UsageMap);
324 324
325 DISALLOW_COPY_AND_ASSIGN(AppCacheStorage); 325 DISALLOW_COPY_AND_ASSIGN(AppCacheStorage);
326 }; 326 };
327 327
328 } // namespace appcache 328 } // namespace content
329 329
330 #endif // WEBKIT_BROWSER_APPCACHE_APPCACHE_STORAGE_H_ 330 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_STORAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698