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_register_job.h" | 5 #include "content/browser/service_worker/service_worker_register_job.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/debug/trace_event.h" | |
horo
2014/09/08 07:50:22
remove this
| |
9 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
10 #include "content/browser/service_worker/service_worker_context_core.h" | 11 #include "content/browser/service_worker/service_worker_context_core.h" |
11 #include "content/browser/service_worker/service_worker_job_coordinator.h" | 12 #include "content/browser/service_worker/service_worker_job_coordinator.h" |
12 #include "content/browser/service_worker/service_worker_registration.h" | 13 #include "content/browser/service_worker/service_worker_registration.h" |
13 #include "content/browser/service_worker/service_worker_storage.h" | 14 #include "content/browser/service_worker/service_worker_storage.h" |
14 #include "content/browser/service_worker/service_worker_utils.h" | 15 #include "content/browser/service_worker/service_worker_utils.h" |
15 | 16 |
16 namespace content { | 17 namespace content { |
17 | 18 |
18 namespace { | 19 namespace { |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
536 ServiceWorkerProviderHost* host = it->GetProviderHost(); | 537 ServiceWorkerProviderHost* host = it->GetProviderHost(); |
537 if (ServiceWorkerUtils::ScopeMatches(registration->pattern(), | 538 if (ServiceWorkerUtils::ScopeMatches(registration->pattern(), |
538 host->document_url())) { | 539 host->document_url())) { |
539 if (host->CanAssociateRegistration(registration)) | 540 if (host->CanAssociateRegistration(registration)) |
540 host->AssociateRegistration(registration); | 541 host->AssociateRegistration(registration); |
541 } | 542 } |
542 } | 543 } |
543 } | 544 } |
544 | 545 |
545 } // namespace content | 546 } // namespace content |
OLD | NEW |