| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/worker/websharedworker_stub.h" | 5 #include "content/worker/websharedworker_stub.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "content/child/child_process.h" | 8 #include "content/child/child_process.h" |
| 9 #include "content/child/child_thread.h" | 9 #include "content/child/child_thread.h" |
| 10 #include "content/child/fileapi/file_system_dispatcher.h" | 10 #include "content/child/fileapi/file_system_dispatcher.h" |
| 11 #include "content/child/shared_worker_devtools_agent.h" |
| 11 #include "content/child/webmessageportchannel_impl.h" | 12 #include "content/child/webmessageportchannel_impl.h" |
| 12 #include "content/common/worker_messages.h" | 13 #include "content/common/worker_messages.h" |
| 13 #include "content/worker/shared_worker_devtools_agent.h" | |
| 14 #include "content/worker/worker_thread.h" | 14 #include "content/worker/worker_thread.h" |
| 15 #include "third_party/WebKit/public/web/WebSharedWorker.h" | 15 #include "third_party/WebKit/public/web/WebSharedWorker.h" |
| 16 #include "third_party/WebKit/public/platform/WebString.h" | 16 #include "third_party/WebKit/public/platform/WebString.h" |
| 17 #include "third_party/WebKit/public/platform/WebURL.h" | 17 #include "third_party/WebKit/public/platform/WebURL.h" |
| 18 | 18 |
| 19 namespace content { | 19 namespace content { |
| 20 | 20 |
| 21 WebSharedWorkerStub::WebSharedWorkerStub( | 21 WebSharedWorkerStub::WebSharedWorkerStub( |
| 22 const GURL& url, | 22 const GURL& url, |
| 23 const base::string16& name, | 23 const base::string16& name, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 iter != pending_channels_.end(); | 128 iter != pending_channels_.end(); |
| 129 ++iter) { | 129 ++iter) { |
| 130 blink::WebMessagePortChannel* channel = *iter; | 130 blink::WebMessagePortChannel* channel = *iter; |
| 131 channel->destroy(); | 131 channel->destroy(); |
| 132 } | 132 } |
| 133 pending_channels_.clear(); | 133 pending_channels_.clear(); |
| 134 Shutdown(); | 134 Shutdown(); |
| 135 } | 135 } |
| 136 | 136 |
| 137 } // namespace content | 137 } // namespace content |
| OLD | NEW |