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

Side by Side Diff: webkit/appcache/appcache_update_job.h

Issue 7720022: Third-party appcache blocking. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Keeping up to date with trunk. Created 9 years, 3 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) 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_UPDATE_JOB_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_UPDATE_JOB_H_
6 #define WEBKIT_APPCACHE_APPCACHE_UPDATE_JOB_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_UPDATE_JOB_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 virtual void OnGroupAndNewestCacheStored(AppCacheGroup* group, 153 virtual void OnGroupAndNewestCacheStored(AppCacheGroup* group,
154 AppCache* newest_cache, 154 AppCache* newest_cache,
155 bool success, 155 bool success,
156 bool would_exceed_quota); 156 bool would_exceed_quota);
157 virtual void OnGroupMadeObsolete(AppCacheGroup* group, bool success); 157 virtual void OnGroupMadeObsolete(AppCacheGroup* group, bool success);
158 158
159 // Methods for AppCacheHost::Observer. 159 // Methods for AppCacheHost::Observer.
160 virtual void OnCacheSelectionComplete(AppCacheHost* host) {} // N/A 160 virtual void OnCacheSelectionComplete(AppCacheHost* host) {} // N/A
161 virtual void OnDestructionImminent(AppCacheHost* host); 161 virtual void OnDestructionImminent(AppCacheHost* host);
162 162
163 void CheckPolicy();
164 void OnPolicyCheckComplete(int rv);
165
166 void HandleCacheFailure(const std::string& error_message); 163 void HandleCacheFailure(const std::string& error_message);
167 164
168 void FetchManifest(bool is_first_fetch); 165 void FetchManifest(bool is_first_fetch);
169 void HandleManifestFetchCompleted(URLFetcher* fetcher); 166 void HandleManifestFetchCompleted(URLFetcher* fetcher);
170 void ContinueHandleManifestFetchCompleted(bool changed); 167 void ContinueHandleManifestFetchCompleted(bool changed);
171 168
172 void HandleUrlFetchCompleted(URLFetcher* fetcher); 169 void HandleUrlFetchCompleted(URLFetcher* fetcher);
173 void HandleMasterEntryFetchCompleted(URLFetcher* fetcher); 170 void HandleMasterEntryFetchCompleted(URLFetcher* fetcher);
174 171
175 void HandleManifestRefetchCompleted(URLFetcher* fetcher); 172 void HandleManifestRefetchCompleted(URLFetcher* fetcher);
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 // TODO(michaeln): Rework when we no longer fetches master entries directly. 300 // TODO(michaeln): Rework when we no longer fetches master entries directly.
304 std::vector<int64> duplicate_response_ids_; 301 std::vector<int64> duplicate_response_ids_;
305 302
306 // Whether we've stored the resulting group/cache yet. 303 // Whether we've stored the resulting group/cache yet.
307 StoredState stored_state_; 304 StoredState stored_state_;
308 305
309 net::CompletionCallbackImpl<AppCacheUpdateJob> manifest_info_write_callback_; 306 net::CompletionCallbackImpl<AppCacheUpdateJob> manifest_info_write_callback_;
310 net::CompletionCallbackImpl<AppCacheUpdateJob> manifest_data_write_callback_; 307 net::CompletionCallbackImpl<AppCacheUpdateJob> manifest_data_write_callback_;
311 net::CompletionCallbackImpl<AppCacheUpdateJob> manifest_data_read_callback_; 308 net::CompletionCallbackImpl<AppCacheUpdateJob> manifest_data_read_callback_;
312 309
313 scoped_refptr<net::CancelableCompletionCallback<AppCacheUpdateJob> >
314 policy_callback_;
315
316 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate); 310 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate);
317 311
318 DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob); 312 DISALLOW_COPY_AND_ASSIGN(AppCacheUpdateJob);
319 }; 313 };
320 314
321 } // namespace appcache 315 } // namespace appcache
322 316
323 #endif // WEBKIT_APPCACHE_APPCACHE_UPDATE_JOB_H_ 317 #endif // WEBKIT_APPCACHE_APPCACHE_UPDATE_JOB_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_storage_impl_unittest.cc ('k') | webkit/appcache/appcache_update_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698