OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/appcache/appcache_group.h" | 5 #include "content/browser/appcache/appcache_group.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "content/browser/appcache/appcache.h" | 15 #include "content/browser/appcache/appcache.h" |
16 #include "content/browser/appcache/appcache_host.h" | 16 #include "content/browser/appcache/appcache_host.h" |
17 #include "content/browser/appcache/appcache_service_impl.h" | 17 #include "content/browser/appcache/appcache_service_impl.h" |
18 #include "content/browser/appcache/appcache_storage.h" | 18 #include "content/browser/appcache/appcache_storage.h" |
19 #include "content/browser/appcache/appcache_update_job.h" | 19 #include "content/browser/appcache/appcache_update_job.h" |
20 | 20 |
21 namespace content { | 21 namespace content { |
22 | 22 |
23 class AppCacheGroup; | 23 class AppCacheGroup; |
24 | 24 |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 // deletion by adding an extra ref in this scope (but only if we're not | 259 // deletion by adding an extra ref in this scope (but only if we're not |
260 // in our destructor). | 260 // in our destructor). |
261 scoped_refptr<AppCacheGroup> protect(is_in_dtor_ ? NULL : this); | 261 scoped_refptr<AppCacheGroup> protect(is_in_dtor_ ? NULL : this); |
262 FOR_EACH_OBSERVER(UpdateObserver, observers_, OnUpdateComplete(this)); | 262 FOR_EACH_OBSERVER(UpdateObserver, observers_, OnUpdateComplete(this)); |
263 if (!queued_updates_.empty()) | 263 if (!queued_updates_.empty()) |
264 ScheduleUpdateRestart(kUpdateRestartDelayMs); | 264 ScheduleUpdateRestart(kUpdateRestartDelayMs); |
265 } | 265 } |
266 } | 266 } |
267 | 267 |
268 } // namespace content | 268 } // namespace content |
OLD | NEW |