| OLD | NEW |
| 1 // Copyright (c) 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_dispatcher_host.h" | 5 #include "content/browser/service_worker/service_worker_dispatcher_host.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "content/browser/browser_thread_impl.h" | 10 #include "content/browser/browser_thread_impl.h" |
| 11 #include "content/browser/service_worker/service_worker_context_core.h" | 11 #include "content/browser/service_worker/service_worker_context_core.h" |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 ServiceWorkerHostMsg_ProviderCreated(kProviderId), | 182 ServiceWorkerHostMsg_ProviderCreated(kProviderId), |
| 183 &handled); | 183 &handled); |
| 184 EXPECT_TRUE(handled); | 184 EXPECT_TRUE(handled); |
| 185 EXPECT_TRUE(context()->GetProviderHost(kRenderProcessId, kProviderId)); | 185 EXPECT_TRUE(context()->GetProviderHost(kRenderProcessId, kProviderId)); |
| 186 EXPECT_TRUE(dispatcher_host->HasOneRef()); | 186 EXPECT_TRUE(dispatcher_host->HasOneRef()); |
| 187 dispatcher_host = NULL; | 187 dispatcher_host = NULL; |
| 188 EXPECT_FALSE(context()->GetProviderHost(kRenderProcessId, kProviderId)); | 188 EXPECT_FALSE(context()->GetProviderHost(kRenderProcessId, kProviderId)); |
| 189 } | 189 } |
| 190 | 190 |
| 191 } // namespace content | 191 } // namespace content |
| OLD | NEW |