OLD | NEW |
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 CONTENT_BROWSER_APPCACHE_APPCACHE_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_H_ |
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_H_ | 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
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/time/time.h" | 14 #include "base/time/time.h" |
15 #include "content/browser/appcache/appcache_database.h" | 15 #include "content/browser/appcache/appcache_database.h" |
16 #include "content/browser/appcache/appcache_entry.h" | 16 #include "content/browser/appcache/appcache_entry.h" |
17 #include "content/browser/appcache/manifest_parser.h" | 17 #include "content/browser/appcache/manifest_parser.h" |
18 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
19 #include "url/gurl.h" | 19 #include "url/gurl.h" |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 class IOBuffer; | 22 class IOBuffer; |
23 } | 23 } |
24 | 24 |
25 namespace content { | 25 namespace content { |
26 FORWARD_DECLARE_TEST(AppCacheTest, InitializeWithManifest); | 26 FORWARD_DECLARE_TEST(AppCacheTest, InitializeWithManifest); |
27 FORWARD_DECLARE_TEST(AppCacheTest, ToFromDatabaseRecords); | 27 FORWARD_DECLARE_TEST(AppCacheTest, ToFromDatabaseRecords); |
28 class AppCacheTest; | |
29 class AppCacheStorageImplTest; | |
30 class AppCacheUpdateJobTest; | |
31 } | |
32 | |
33 namespace content { | |
34 | |
35 class AppCacheExecutableHandler; | 28 class AppCacheExecutableHandler; |
36 class AppCacheGroup; | 29 class AppCacheGroup; |
37 class AppCacheHost; | 30 class AppCacheHost; |
38 class AppCacheStorage; | 31 class AppCacheStorage; |
| 32 class AppCacheTest; |
| 33 class AppCacheStorageImplTest; |
| 34 class AppCacheUpdateJobTest; |
39 | 35 |
40 // Set of cached resources for an application. A cache exists as long as a | 36 // Set of cached resources for an application. A cache exists as long as a |
41 // host is associated with it, the cache is in an appcache group or the | 37 // host is associated with it, the cache is in an appcache group or the |
42 // cache is being created during an appcache upate. | 38 // cache is being created during an appcache upate. |
43 class CONTENT_EXPORT AppCache | 39 class CONTENT_EXPORT AppCache |
44 : public base::RefCounted<AppCache> { | 40 : public base::RefCounted<AppCache> { |
45 public: | 41 public: |
46 typedef std::map<GURL, AppCacheEntry> EntryMap; | 42 typedef std::map<GURL, AppCacheEntry> EntryMap; |
47 typedef std::set<AppCacheHost*> AppCacheHosts; | 43 typedef std::set<AppCacheHost*> AppCacheHosts; |
48 | 44 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 AppCacheStorage* storage_; | 201 AppCacheStorage* storage_; |
206 | 202 |
207 FRIEND_TEST_ALL_PREFIXES(content::AppCacheTest, InitializeWithManifest); | 203 FRIEND_TEST_ALL_PREFIXES(content::AppCacheTest, InitializeWithManifest); |
208 FRIEND_TEST_ALL_PREFIXES(content::AppCacheTest, ToFromDatabaseRecords); | 204 FRIEND_TEST_ALL_PREFIXES(content::AppCacheTest, ToFromDatabaseRecords); |
209 DISALLOW_COPY_AND_ASSIGN(AppCache); | 205 DISALLOW_COPY_AND_ASSIGN(AppCache); |
210 }; | 206 }; |
211 | 207 |
212 } // namespace content | 208 } // namespace content |
213 | 209 |
214 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_H_ | 210 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_H_ |
OLD | NEW |