| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H | 5 #ifndef CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H |
| 6 #define CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H | 6 #define CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H |
| 7 | 7 |
| 8 #include "content/child/child_message_filter.h" | 8 #include "content/child/child_message_filter.h" |
| 9 #include "content/child/scoped_child_process_reference.h" | 9 #include "content/child/scoped_child_process_reference.h" |
| 10 #include "ipc/ipc_listener.h" | 10 #include "ipc/ipc_listener.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual void dispatchDevToolsMessage( | 56 virtual void dispatchDevToolsMessage( |
| 57 const blink::WebString& message) OVERRIDE; | 57 const blink::WebString& message) OVERRIDE; |
| 58 virtual void saveDevToolsAgentState(const blink::WebString& state) OVERRIDE; | 58 virtual void saveDevToolsAgentState(const blink::WebString& state) OVERRIDE; |
| 59 | 59 |
| 60 private: | 60 private: |
| 61 virtual ~EmbeddedSharedWorkerStub(); | 61 virtual ~EmbeddedSharedWorkerStub(); |
| 62 | 62 |
| 63 void Shutdown(); | 63 void Shutdown(); |
| 64 bool Send(IPC::Message* message); | 64 bool Send(IPC::Message* message); |
| 65 | 65 |
| 66 // WebSharedWorker will own |channel|. |
| 67 void ConnectToChannel(WebMessagePortChannelImpl* channel); |
| 68 |
| 66 void OnConnect(int sent_message_port_id, int routing_id); | 69 void OnConnect(int sent_message_port_id, int routing_id); |
| 67 void OnTerminateWorkerContext(); | 70 void OnTerminateWorkerContext(); |
| 68 | 71 |
| 69 int route_id_; | 72 int route_id_; |
| 70 base::string16 name_; | 73 base::string16 name_; |
| 71 bool runing_; | 74 bool runing_; |
| 72 GURL url_; | 75 GURL url_; |
| 73 blink::WebSharedWorker* impl_; | 76 blink::WebSharedWorker* impl_; |
| 74 scoped_ptr<SharedWorkerDevToolsAgent> worker_devtools_agent_; | 77 scoped_ptr<SharedWorkerDevToolsAgent> worker_devtools_agent_; |
| 75 | 78 |
| 76 typedef std::vector<WebMessagePortChannelImpl*> PendingChannelList; | 79 typedef std::vector<WebMessagePortChannelImpl*> PendingChannelList; |
| 77 PendingChannelList pending_channels_; | 80 PendingChannelList pending_channels_; |
| 78 | 81 |
| 79 ScopedChildProcessReference process_ref_; | 82 ScopedChildProcessReference process_ref_; |
| 80 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); | 83 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); |
| 81 }; | 84 }; |
| 82 | 85 |
| 83 } // namespace content | 86 } // namespace content |
| 84 | 87 |
| 85 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H | 88 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H |
| OLD | NEW |