OLD | NEW |
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 #include "webkit/appcache/appcache_group.h" | 5 #include "webkit/appcache/appcache_group.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 // Observers may release us in these callbacks, so we protect against | 257 // Observers may release us in these callbacks, so we protect against |
258 // deletion by adding an extra ref in this scope (but only if we're not | 258 // deletion by adding an extra ref in this scope (but only if we're not |
259 // in our destructor). | 259 // in our destructor). |
260 scoped_refptr<AppCacheGroup> protect(is_in_dtor_ ? NULL : this); | 260 scoped_refptr<AppCacheGroup> protect(is_in_dtor_ ? NULL : this); |
261 FOR_EACH_OBSERVER(UpdateObserver, observers_, OnUpdateComplete(this)); | 261 FOR_EACH_OBSERVER(UpdateObserver, observers_, OnUpdateComplete(this)); |
262 if (!queued_updates_.empty()) | 262 if (!queued_updates_.empty()) |
263 ScheduleUpdateRestart(kUpdateRestartDelayMs); | 263 ScheduleUpdateRestart(kUpdateRestartDelayMs); |
264 } | 264 } |
265 } | 265 } |
266 | 266 |
267 void AppCacheGroup::NotifyContentBlocked() { | |
268 FOR_EACH_OBSERVER( | |
269 UpdateObserver, observers_, OnContentBlocked(this)); | |
270 } | |
271 | |
272 } // namespace appcache | 267 } // namespace appcache |
OLD | NEW |