| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/service_worker/service_worker_storage.h" | 5 #include "content/browser/service_worker/service_worker_storage.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
| 10 #include "base/file_util.h" | 10 #include "base/files/file_util.h" |
| 11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 12 #include "base/sequenced_task_runner.h" | 12 #include "base/sequenced_task_runner.h" |
| 13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
| 14 #include "base/task_runner_util.h" | 14 #include "base/task_runner_util.h" |
| 15 #include "content/browser/service_worker/service_worker_context_core.h" | 15 #include "content/browser/service_worker/service_worker_context_core.h" |
| 16 #include "content/browser/service_worker/service_worker_disk_cache.h" | 16 #include "content/browser/service_worker/service_worker_disk_cache.h" |
| 17 #include "content/browser/service_worker/service_worker_info.h" | 17 #include "content/browser/service_worker/service_worker_info.h" |
| 18 #include "content/browser/service_worker/service_worker_metrics.h" | 18 #include "content/browser/service_worker/service_worker_metrics.h" |
| 19 #include "content/browser/service_worker/service_worker_registration.h" | 19 #include "content/browser/service_worker/service_worker_registration.h" |
| 20 #include "content/browser/service_worker/service_worker_utils.h" | 20 #include "content/browser/service_worker/service_worker_utils.h" |
| (...skipping 1377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1398 // Give up the corruption recovery until the browser restarts. | 1398 // Give up the corruption recovery until the browser restarts. |
| 1399 LOG(ERROR) << "Failed to delete the diskcache."; | 1399 LOG(ERROR) << "Failed to delete the diskcache."; |
| 1400 callback.Run(SERVICE_WORKER_ERROR_FAILED); | 1400 callback.Run(SERVICE_WORKER_ERROR_FAILED); |
| 1401 return; | 1401 return; |
| 1402 } | 1402 } |
| 1403 DVLOG(1) << "Deleted ServiceWorkerDiskCache successfully."; | 1403 DVLOG(1) << "Deleted ServiceWorkerDiskCache successfully."; |
| 1404 callback.Run(SERVICE_WORKER_OK); | 1404 callback.Run(SERVICE_WORKER_OK); |
| 1405 } | 1405 } |
| 1406 | 1406 |
| 1407 } // namespace content | 1407 } // namespace content |
| OLD | NEW |