| 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 #ifndef CONTENT_RENDERER_SHARED_WORKER_WEBSHAREDWORKER_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_SHARED_WORKER_WEBSHAREDWORKER_PROXY_H_ |
| 6 #define CONTENT_RENDERER_SHARED_WORKER_WEBSHAREDWORKER_PROXY_H_ | 6 #define CONTENT_RENDERER_SHARED_WORKER_WEBSHAREDWORKER_PROXY_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "content/common/message_port.h" |
| 11 #include "ipc/ipc_listener.h" | 12 #include "ipc/ipc_listener.h" |
| 12 #include "third_party/WebKit/public/web/WebSharedWorkerConnectListener.h" | 13 #include "third_party/WebKit/public/web/WebSharedWorkerConnectListener.h" |
| 13 #include "third_party/WebKit/public/web/WebSharedWorkerCreationErrors.h" | 14 #include "third_party/WebKit/public/web/WebSharedWorkerCreationErrors.h" |
| 14 | 15 |
| 15 struct ViewHostMsg_CreateWorker_Params; | 16 struct ViewHostMsg_CreateWorker_Params; |
| 16 | 17 |
| 17 namespace blink { | 18 namespace blink { |
| 18 class WebMessagePortChannel; | 19 class WebMessagePortChannel; |
| 19 } | 20 } |
| 20 | 21 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 50 void OnCountFeature(uint32_t feature); | 51 void OnCountFeature(uint32_t feature); |
| 51 | 52 |
| 52 // Routing id associated with this worker - used to receive messages from the | 53 // Routing id associated with this worker - used to receive messages from the |
| 53 // worker, and also to route messages to the worker (WorkerService contains | 54 // worker, and also to route messages to the worker (WorkerService contains |
| 54 // a map that maps between these renderer-side route IDs and worker-side | 55 // a map that maps between these renderer-side route IDs and worker-side |
| 55 // routing ids). | 56 // routing ids). |
| 56 int route_id_; | 57 int route_id_; |
| 57 | 58 |
| 58 IPC::MessageRouter* const router_; | 59 IPC::MessageRouter* const router_; |
| 59 | 60 |
| 60 int message_port_id_; | 61 MessagePort message_port_; |
| 61 std::unique_ptr<blink::WebSharedWorkerConnectListener> listener_; | 62 std::unique_ptr<blink::WebSharedWorkerConnectListener> listener_; |
| 62 | 63 |
| 63 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy); | 64 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy); |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 } // namespace content | 67 } // namespace content |
| 67 | 68 |
| 68 #endif // CONTENT_RENDERER_SHARED_WORKER_WEBSHAREDWORKER_PROXY_H_ | 69 #endif // CONTENT_RENDERER_SHARED_WORKER_WEBSHAREDWORKER_PROXY_H_ |
| OLD | NEW |