| 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_context_core.h" | 5 #include "content/browser/service_worker/service_worker_context_core.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/message_loop/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "content/browser/service_worker/embedded_worker_registry.h" | 10 #include "content/browser/service_worker/embedded_worker_registry.h" |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 } | 331 } |
| 332 | 332 |
| 333 void ServiceWorkerContextCore::DeleteAndStartOver( | 333 void ServiceWorkerContextCore::DeleteAndStartOver( |
| 334 const StatusCallback& callback) { | 334 const StatusCallback& callback) { |
| 335 job_coordinator_->AbortAll(); | 335 job_coordinator_->AbortAll(); |
| 336 storage_->DeleteAndStartOver(callback); | 336 storage_->DeleteAndStartOver(callback); |
| 337 } | 337 } |
| 338 | 338 |
| 339 void ServiceWorkerContextCore::SetBlobParametersForCache( | 339 void ServiceWorkerContextCore::SetBlobParametersForCache( |
| 340 net::URLRequestContext* request_context, | 340 net::URLRequestContext* request_context, |
| 341 base::WeakPtr<webkit_blob::BlobStorageContext> blob_storage_context) { | 341 base::WeakPtr<storage::BlobStorageContext> blob_storage_context) { |
| 342 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 342 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 343 | 343 |
| 344 cache_manager_->SetBlobParametersForCache(request_context, | 344 cache_manager_->SetBlobParametersForCache(request_context, |
| 345 blob_storage_context); | 345 blob_storage_context); |
| 346 } | 346 } |
| 347 | 347 |
| 348 void ServiceWorkerContextCore::OnWorkerStarted(ServiceWorkerVersion* version) { | 348 void ServiceWorkerContextCore::OnWorkerStarted(ServiceWorkerVersion* version) { |
| 349 if (!observer_list_) | 349 if (!observer_list_) |
| 350 return; | 350 return; |
| 351 observer_list_->Notify(&ServiceWorkerContextObserver::OnWorkerStarted, | 351 observer_list_->Notify(&ServiceWorkerContextObserver::OnWorkerStarted, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 version->embedded_worker()->thread_id(), | 404 version->embedded_worker()->thread_id(), |
| 405 ServiceWorkerContextObserver::ConsoleMessage( | 405 ServiceWorkerContextObserver::ConsoleMessage( |
| 406 source_identifier, message_level, message, line_number, source_url)); | 406 source_identifier, message_level, message, line_number, source_url)); |
| 407 } | 407 } |
| 408 | 408 |
| 409 ServiceWorkerProcessManager* ServiceWorkerContextCore::process_manager() { | 409 ServiceWorkerProcessManager* ServiceWorkerContextCore::process_manager() { |
| 410 return wrapper_->process_manager(); | 410 return wrapper_->process_manager(); |
| 411 } | 411 } |
| 412 | 412 |
| 413 } // namespace content | 413 } // namespace content |
| OLD | NEW |