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

Side by Side Diff: webkit/appcache/appcache_group.cc

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
« no previous file with comments | « webkit/appcache/appcache_group.h ('k') | webkit/appcache/appcache_host.h » ('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 #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
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
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_group.h ('k') | webkit/appcache/appcache_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698