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

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

Issue 1600002: Indicate in the tab UI if appcache creation was blocked by privacy settings. (Closed)
Patch Set: updates Created 10 years, 8 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
OLDNEW
1 // Copyright (c) 2009 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"
11 #include "webkit/appcache/appcache.h" 11 #include "webkit/appcache/appcache.h"
(...skipping 245 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
267 } // namespace appcache 272 } // namespace appcache
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698