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

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

Issue 1420723009: AppCache: Remove dead code from AppCacheService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | content/browser/appcache/appcache_service_impl.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SERVICE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 void RemoveObserver(Observer* observer) { 93 void RemoveObserver(Observer* observer) {
94 observers_.RemoveObserver(observer); 94 observers_.RemoveObserver(observer);
95 } 95 }
96 96
97 // For use in catastrophic failure modes to reboot the appcache system 97 // For use in catastrophic failure modes to reboot the appcache system
98 // without relaunching the browser. 98 // without relaunching the browser.
99 void ScheduleReinitialize(); 99 void ScheduleReinitialize();
100 100
101 // AppCacheService implementation: 101 // AppCacheService implementation:
102 void CanHandleMainResourceOffline(
103 const GURL& url,
104 const GURL& first_party,
105 const net::CompletionCallback& callback) override;
106 void GetAllAppCacheInfo(AppCacheInfoCollection* collection, 102 void GetAllAppCacheInfo(AppCacheInfoCollection* collection,
107 const net::CompletionCallback& callback) override; 103 const net::CompletionCallback& callback) override;
108 void DeleteAppCacheGroup(const GURL& manifest_url, 104 void DeleteAppCacheGroup(const GURL& manifest_url,
109 const net::CompletionCallback& callback) override; 105 const net::CompletionCallback& callback) override;
110 106
111 // Deletes all appcaches for the origin, 'callback' is invoked upon 107 // Deletes all appcaches for the origin, 'callback' is invoked upon
112 // completion. This method always completes asynchronously. 108 // completion. This method always completes asynchronously.
113 // (virtual for unit testing) 109 // (virtual for unit testing)
114 virtual void DeleteAppCachesForOrigin( 110 virtual void DeleteAppCachesForOrigin(
115 const GURL& origin, const net::CompletionCallback& callback); 111 const GURL& origin, const net::CompletionCallback& callback);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void set_force_keep_session_state() { force_keep_session_state_ = true; } 176 void set_force_keep_session_state() { force_keep_session_state_ = true; }
181 bool force_keep_session_state() const { return force_keep_session_state_; } 177 bool force_keep_session_state() const { return force_keep_session_state_; }
182 178
183 protected: 179 protected:
184 friend class content::AppCacheServiceImplTest; 180 friend class content::AppCacheServiceImplTest;
185 friend class content::AppCacheStorageImplTest; 181 friend class content::AppCacheStorageImplTest;
186 FRIEND_TEST_ALL_PREFIXES(content::AppCacheServiceImplTest, 182 FRIEND_TEST_ALL_PREFIXES(content::AppCacheServiceImplTest,
187 ScheduleReinitialize); 183 ScheduleReinitialize);
188 184
189 class AsyncHelper; 185 class AsyncHelper;
190 class CanHandleOfflineHelper;
191 class DeleteHelper; 186 class DeleteHelper;
192 class DeleteOriginHelper; 187 class DeleteOriginHelper;
193 class GetInfoHelper; 188 class GetInfoHelper;
194 class CheckResponseHelper; 189 class CheckResponseHelper;
195 190
196 typedef std::set<AsyncHelper*> PendingAsyncHelpers; 191 typedef std::set<AsyncHelper*> PendingAsyncHelpers;
197 typedef std::map<int, AppCacheBackendImpl*> BackendMap; 192 typedef std::map<int, AppCacheBackendImpl*> BackendMap;
198 193
199 void Reinitialize(); 194 void Reinitialize();
200 195
(...skipping 19 matching lines...) Expand all
220 215
221 private: 216 private:
222 base::WeakPtrFactory<AppCacheServiceImpl> weak_factory_; 217 base::WeakPtrFactory<AppCacheServiceImpl> weak_factory_;
223 218
224 DISALLOW_COPY_AND_ASSIGN(AppCacheServiceImpl); 219 DISALLOW_COPY_AND_ASSIGN(AppCacheServiceImpl);
225 }; 220 };
226 221
227 } // namespace content 222 } // namespace content
228 223
229 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_ 224 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/appcache/appcache_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698