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

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

Issue 3074015: Sending renderer notification when update job finishes (Used to notify cache ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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
« no previous file with comments | « no previous file | webkit/appcache/appcache_host.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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_HOST_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_HOST_H_
6 #define WEBKIT_APPCACHE_APPCACHE_HOST_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_HOST_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 // async loading of a cache or a group from storage. 195 // async loading of a cache or a group from storage.
196 GetStatusCallback* pending_get_status_callback_; 196 GetStatusCallback* pending_get_status_callback_;
197 StartUpdateCallback* pending_start_update_callback_; 197 StartUpdateCallback* pending_start_update_callback_;
198 SwapCacheCallback* pending_swap_cache_callback_; 198 SwapCacheCallback* pending_swap_cache_callback_;
199 void* pending_callback_param_; 199 void* pending_callback_param_;
200 200
201 // True if requests for this host were blocked by a policy. 201 // True if requests for this host were blocked by a policy.
202 bool main_resource_blocked_; 202 bool main_resource_blocked_;
203 GURL blocked_manifest_url_; 203 GURL blocked_manifest_url_;
204 204
205 // Tells if info about associated cache is pending. Info is pending
206 // when update job has not returned success yet.
207 bool associated_cache_info_pending_;
205 208
206 // List of objects observing us. 209 // List of objects observing us.
207 ObserverList<Observer> observers_; 210 ObserverList<Observer> observers_;
208 211
209 friend class AppCacheRequestHandlerTest; 212 friend class AppCacheRequestHandlerTest;
210 friend class AppCacheUpdateJobTest; 213 friend class AppCacheUpdateJobTest;
211 FRIEND_TEST(AppCacheTest, CleanupUnusedCache); 214 FRIEND_TEST(AppCacheTest, CleanupUnusedCache);
212 FRIEND_TEST(AppCacheGroupTest, CleanupUnusedGroup); 215 FRIEND_TEST(AppCacheGroupTest, CleanupUnusedGroup);
213 FRIEND_TEST(AppCacheHostTest, Basic); 216 FRIEND_TEST(AppCacheHostTest, Basic);
214 FRIEND_TEST(AppCacheHostTest, SelectNoCache); 217 FRIEND_TEST(AppCacheHostTest, SelectNoCache);
215 FRIEND_TEST(AppCacheHostTest, ForeignEntry); 218 FRIEND_TEST(AppCacheHostTest, ForeignEntry);
216 FRIEND_TEST(AppCacheHostTest, FailedCacheLoad); 219 FRIEND_TEST(AppCacheHostTest, FailedCacheLoad);
217 FRIEND_TEST(AppCacheHostTest, FailedGroupLoad); 220 FRIEND_TEST(AppCacheHostTest, FailedGroupLoad);
218 FRIEND_TEST(AppCacheHostTest, SetSwappableCache); 221 FRIEND_TEST(AppCacheHostTest, SetSwappableCache);
219 FRIEND_TEST(AppCacheHostTest, ForDedicatedWorker); 222 FRIEND_TEST(AppCacheHostTest, ForDedicatedWorker);
220 FRIEND_TEST(AppCacheGroupTest, QueueUpdate); 223 FRIEND_TEST(AppCacheGroupTest, QueueUpdate);
221 DISALLOW_COPY_AND_ASSIGN(AppCacheHost); 224 DISALLOW_COPY_AND_ASSIGN(AppCacheHost);
222 }; 225 };
223 226
224 } // namespace appcache 227 } // namespace appcache
225 228
226 #endif // WEBKIT_APPCACHE_APPCACHE_HOST_H_ 229 #endif // WEBKIT_APPCACHE_APPCACHE_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/appcache/appcache_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698