| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/renderer/websharedworker_proxy.h" | 5 #include "content/renderer/websharedworker_proxy.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "content/child/webmessageportchannel_impl.h" | 9 #include "content/child/webmessageportchannel_impl.h" |
| 8 #include "content/common/message_router.h" | 10 #include "content/common/message_router.h" |
| 9 #include "content/common/view_messages.h" | 11 #include "content/common/view_messages.h" |
| 10 #include "content/common/worker_messages.h" | 12 #include "content/common/worker_messages.h" |
| 11 #include "third_party/WebKit/public/platform/WebURL.h" | 13 #include "third_party/WebKit/public/platform/WebURL.h" |
| 12 #include "third_party/WebKit/public/web/WebSharedWorkerClient.h" | 14 #include "third_party/WebKit/public/web/WebSharedWorkerClient.h" |
| 13 | 15 |
| 14 namespace content { | 16 namespace content { |
| 15 | 17 |
| 16 WebSharedWorkerProxy::WebSharedWorkerProxy(MessageRouter* router, | 18 WebSharedWorkerProxy::WebSharedWorkerProxy(MessageRouter* router, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 } | 118 } |
| 117 | 119 |
| 118 void WebSharedWorkerProxy::OnWorkerConnected() { | 120 void WebSharedWorkerProxy::OnWorkerConnected() { |
| 119 if (connect_listener_) { | 121 if (connect_listener_) { |
| 120 // This can result in this object being freed. | 122 // This can result in this object being freed. |
| 121 connect_listener_->connected(); | 123 connect_listener_->connected(); |
| 122 } | 124 } |
| 123 } | 125 } |
| 124 | 126 |
| 125 } // namespace content | 127 } // namespace content |
| OLD | NEW |