| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/renderer/websharedworker_proxy.h" | 5 #include "chrome/renderer/websharedworker_proxy.h" |
| 6 | 6 |
| 7 #include "chrome/common/render_messages.h" | 7 #include "chrome/common/render_messages.h" |
| 8 #include "chrome/common/webmessageportchannel_impl.h" | 8 #include "chrome/common/webmessageportchannel_impl.h" |
| 9 #include "chrome/common/worker_messages.h" | 9 #include "chrome/common/worker_messages.h" |
| 10 #include "webkit/api/public/WebURL.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebURL.h" |
| 11 | 11 |
| 12 WebSharedWorkerProxy::WebSharedWorkerProxy(ChildThread* child_thread, | 12 WebSharedWorkerProxy::WebSharedWorkerProxy(ChildThread* child_thread, |
| 13 int route_id, | 13 int route_id, |
| 14 int render_view_route_id) | 14 int render_view_route_id) |
| 15 : WebWorkerBase(child_thread, route_id, render_view_route_id), | 15 : WebWorkerBase(child_thread, route_id, render_view_route_id), |
| 16 m_connectListener(NULL) { | 16 m_connectListener(NULL) { |
| 17 } | 17 } |
| 18 | 18 |
| 19 bool WebSharedWorkerProxy::isStarted() { | 19 bool WebSharedWorkerProxy::isStarted() { |
| 20 return IsStarted(); | 20 return IsStarted(); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // any other queued messages | 67 // any other queued messages |
| 68 SendQueuedMessages(); | 68 SendQueuedMessages(); |
| 69 | 69 |
| 70 // Inform any listener that the pending connect event has been sent | 70 // Inform any listener that the pending connect event has been sent |
| 71 // (this can result in this object being freed). | 71 // (this can result in this object being freed). |
| 72 if (m_connectListener) { | 72 if (m_connectListener) { |
| 73 m_connectListener->connected(); | 73 m_connectListener->connected(); |
| 74 } | 74 } |
| 75 } | 75 } |
| 76 | 76 |
| OLD | NEW |