OLD | NEW |
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_SERVICE_H_ | 5 #ifndef WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ |
6 #define WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ | 6 #define WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 struct APPCACHE_EXPORT AppCacheInfoCollection | 43 struct APPCACHE_EXPORT AppCacheInfoCollection |
44 : public base::RefCountedThreadSafe<AppCacheInfoCollection> { | 44 : public base::RefCountedThreadSafe<AppCacheInfoCollection> { |
45 AppCacheInfoCollection(); | 45 AppCacheInfoCollection(); |
46 virtual ~AppCacheInfoCollection(); | 46 virtual ~AppCacheInfoCollection(); |
47 | 47 |
48 std::map<GURL, AppCacheInfoVector> infos_by_origin; | 48 std::map<GURL, AppCacheInfoVector> infos_by_origin; |
49 }; | 49 }; |
50 | 50 |
51 // Class that manages the application cache service. Sends notifications | 51 // Class that manages the application cache service. Sends notifications |
52 // to many frontends. One instance per user-profile. Each instance has | 52 // to many frontends. One instance per user-profile. Each instance has |
53 // exclusive access to it's cache_directory on disk. | 53 // exclusive access to its cache_directory on disk. |
54 class APPCACHE_EXPORT AppCacheService { | 54 class APPCACHE_EXPORT AppCacheService { |
55 public: | 55 public: |
56 // If not using quota management, the proxy may be NULL. | 56 // If not using quota management, the proxy may be NULL. |
57 explicit AppCacheService(quota::QuotaManagerProxy* quota_manager_proxy); | 57 explicit AppCacheService(quota::QuotaManagerProxy* quota_manager_proxy); |
58 virtual ~AppCacheService(); | 58 virtual ~AppCacheService(); |
59 | 59 |
60 void Initialize(const FilePath& cache_directory, | 60 void Initialize(const FilePath& cache_directory, |
61 base::MessageLoopProxy* db_thread, | 61 base::MessageLoopProxy* db_thread, |
62 base::MessageLoopProxy* cache_thread); | 62 base::MessageLoopProxy* cache_thread); |
63 | 63 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 bool clear_local_state_on_exit_; | 180 bool clear_local_state_on_exit_; |
181 // If true, nothing (not even session-only data) should be deleted on exit. | 181 // If true, nothing (not even session-only data) should be deleted on exit. |
182 bool save_session_state_; | 182 bool save_session_state_; |
183 | 183 |
184 DISALLOW_COPY_AND_ASSIGN(AppCacheService); | 184 DISALLOW_COPY_AND_ASSIGN(AppCacheService); |
185 }; | 185 }; |
186 | 186 |
187 } // namespace appcache | 187 } // namespace appcache |
188 | 188 |
189 #endif // WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ | 189 #endif // WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ |
OLD | NEW |