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

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

Issue 189413014: Send WorkerHostMsg_WorkerConnected in EmbeddedSharedWorkerStub::OnConnect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated kinuko's comment Created 6 years, 9 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
« no previous file with comments | « no previous file | content/renderer/shared_worker/embedded_shared_worker_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | content/renderer/shared_worker/embedded_shared_worker_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698