OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/background_sync/background_sync_manager.h" | 5 #include "content/browser/background_sync/background_sync_manager.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/barrier_closure.h" | 9 #include "base/barrier_closure.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.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 "base/time/default_clock.h" | 15 #include "base/time/default_clock.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 #include "content/browser/background_sync/background_sync_metrics.h" | 17 #include "content/browser/background_sync/background_sync_metrics.h" |
18 #include "content/browser/background_sync/background_sync_network_observer.h" | 18 #include "content/browser/background_sync/background_sync_network_observer.h" |
19 #include "content/browser/background_sync/background_sync_registration_options.h
" | 19 #include "content/browser/background_sync/background_sync_registration_options.h
" |
20 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 20 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
21 #include "content/browser/service_worker/service_worker_storage.h" | 21 #include "content/browser/service_worker/service_worker_storage.h" |
22 #include "content/browser/storage_partition_impl.h" | 22 #include "content/browser/storage_partition_impl.h" |
23 #include "content/common/service_worker/service_worker_type_converters.h" | 23 #include "content/common/service_worker/service_worker_type_converters.h" |
24 #include "content/public/browser/background_sync_controller.h" | 24 #include "content/public/browser/background_sync_controller.h" |
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1242 BackgroundSyncManager::MakeStatusCompletion(const StatusCallback& callback) { | 1242 BackgroundSyncManager::MakeStatusCompletion(const StatusCallback& callback) { |
1243 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 1243 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
1244 | 1244 |
1245 return base::Bind( | 1245 return base::Bind( |
1246 &BackgroundSyncManager::CompleteOperationCallback<StatusCallback, | 1246 &BackgroundSyncManager::CompleteOperationCallback<StatusCallback, |
1247 BackgroundSyncStatus>, | 1247 BackgroundSyncStatus>, |
1248 weak_ptr_factory_.GetWeakPtr(), callback); | 1248 weak_ptr_factory_.GetWeakPtr(), callback); |
1249 } | 1249 } |
1250 | 1250 |
1251 } // namespace content | 1251 } // namespace content |
OLD | NEW |