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/threading/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 "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "content/browser/background_sync/background_sync_metrics.h" | 18 #include "content/browser/background_sync/background_sync_metrics.h" |
19 #include "content/browser/background_sync/background_sync_network_observer.h" | 19 #include "content/browser/background_sync/background_sync_network_observer.h" |
20 #include "content/browser/background_sync/background_sync_registration_options.h
" | 20 #include "content/browser/background_sync/background_sync_registration_options.h
" |
21 #include "content/browser/service_worker/embedded_worker_status.h" | 21 #include "content/browser/service_worker/embedded_worker_status.h" |
22 #include "content/browser/service_worker/service_worker_context_wrapper.h" | 22 #include "content/browser/service_worker/service_worker_context_wrapper.h" |
23 #include "content/browser/service_worker/service_worker_storage.h" | 23 #include "content/browser/service_worker/service_worker_storage.h" |
24 #include "content/browser/storage_partition_impl.h" | 24 #include "content/browser/storage_partition_impl.h" |
25 #include "content/common/service_worker/service_worker_event_dispatcher.mojom.h" | 25 #include "content/common/service_worker/service_worker_event_dispatcher.mojom.h" |
26 #include "content/common/service_worker/service_worker_type_converters.h" | |
27 #include "content/common/service_worker/service_worker_utils.h" | 26 #include "content/common/service_worker/service_worker_utils.h" |
28 #include "content/public/browser/background_sync_controller.h" | 27 #include "content/public/browser/background_sync_controller.h" |
29 #include "content/public/browser/browser_context.h" | 28 #include "content/public/browser/browser_context.h" |
30 #include "content/public/browser/browser_thread.h" | 29 #include "content/public/browser/browser_thread.h" |
31 #include "content/public/browser/permission_manager.h" | 30 #include "content/public/browser/permission_manager.h" |
32 #include "content/public/browser/permission_type.h" | 31 #include "content/public/browser/permission_type.h" |
33 | 32 |
34 #if defined(OS_ANDROID) | 33 #if defined(OS_ANDROID) |
35 #include "content/browser/android/background_sync_network_observer_android.h" | 34 #include "content/browser/android/background_sync_network_observer_android.h" |
36 #endif | 35 #endif |
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1171 parameters_->max_sync_attempts = max_attempts; | 1170 parameters_->max_sync_attempts = max_attempts; |
1172 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, callback); | 1171 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, callback); |
1173 } | 1172 } |
1174 | 1173 |
1175 base::Closure BackgroundSyncManager::MakeEmptyCompletion() { | 1174 base::Closure BackgroundSyncManager::MakeEmptyCompletion() { |
1176 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 1175 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
1177 return op_scheduler_.WrapCallbackToRunNext(base::Bind(&base::DoNothing)); | 1176 return op_scheduler_.WrapCallbackToRunNext(base::Bind(&base::DoNothing)); |
1178 } | 1177 } |
1179 | 1178 |
1180 } // namespace content | 1179 } // namespace content |
OLD | NEW |