Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1367)

Side by Side Diff: content/renderer/shared_worker/websharedworker_proxy.h

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Add metrics and support for non-ASCII text messages to Java endpoints Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/common/message_port.h"
9 #include "ipc/ipc_listener.h" 10 #include "ipc/ipc_listener.h"
10 #include "third_party/WebKit/public/web/WebSharedWorkerConnectListener.h" 11 #include "third_party/WebKit/public/web/WebSharedWorkerConnectListener.h"
11 #include "third_party/WebKit/public/web/WebSharedWorkerCreationErrors.h" 12 #include "third_party/WebKit/public/web/WebSharedWorkerCreationErrors.h"
12 13
13 struct ViewHostMsg_CreateWorker_Params; 14 struct ViewHostMsg_CreateWorker_Params;
14 15
15 namespace blink { 16 namespace blink {
16 class WebMessagePortChannel; 17 class WebMessagePortChannel;
17 } 18 }
18 19
(...skipping 29 matching lines...) Expand all
48 void OnWorkerConnected(); 49 void OnWorkerConnected();
49 50
50 // Routing id associated with this worker - used to receive messages from the 51 // Routing id associated with this worker - used to receive messages from the
51 // worker, and also to route messages to the worker (WorkerService contains 52 // worker, and also to route messages to the worker (WorkerService contains
52 // a map that maps between these renderer-side route IDs and worker-side 53 // a map that maps between these renderer-side route IDs and worker-side
53 // routing ids). 54 // routing ids).
54 int route_id_; 55 int route_id_;
55 56
56 IPC::MessageRouter* const router_; 57 IPC::MessageRouter* const router_;
57 58
58 int message_port_id_; 59 MessagePort message_port_;
59 std::unique_ptr<blink::WebSharedWorkerConnectListener> listener_; 60 std::unique_ptr<blink::WebSharedWorkerConnectListener> listener_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy); 62 DISALLOW_COPY_AND_ASSIGN(WebSharedWorkerProxy);
62 }; 63 };
63 64
64 } // namespace content 65 } // namespace content
65 66
66 #endif // CONTENT_RENDERER_SHARED_WORKER_WEBSHAREDWORKER_PROXY_H_ 67 #endif // CONTENT_RENDERER_SHARED_WORKER_WEBSHAREDWORKER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698