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

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

Issue 2422793002: HTML MessagePort as mojo::MessagePipeHandle (Closed)
Patch Set: Add missing ScopedAsyncTaskScheduler instance for the new unit tests; required by a recent change t… Created 3 years, 10 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 <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
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_
OLDNEW
« no previous file with comments | « content/renderer/shared_worker/embedded_shared_worker_stub.cc ('k') | content/renderer/shared_worker/websharedworker_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698