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 <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 CreateWorkerContentSettingsClientProxy( | 74 CreateWorkerContentSettingsClientProxy( |
75 const blink::WebSecurityOrigin& origin) override; | 75 const blink::WebSecurityOrigin& origin) override; |
76 blink::WebServiceWorkerNetworkProvider* CreateServiceWorkerNetworkProvider() | 76 blink::WebServiceWorkerNetworkProvider* CreateServiceWorkerNetworkProvider() |
77 override; | 77 override; |
78 void SendDevToolsMessage(int session_id, | 78 void SendDevToolsMessage(int session_id, |
79 int call_id, | 79 int call_id, |
80 const blink::WebString& message, | 80 const blink::WebString& message, |
81 const blink::WebString& state) override; | 81 const blink::WebString& state) override; |
82 blink::WebDevToolsAgentClient::WebKitClientMessageLoop* | 82 blink::WebDevToolsAgentClient::WebKitClientMessageLoop* |
83 CreateDevToolsMessageLoop() override; | 83 CreateDevToolsMessageLoop() override; |
| 84 blink::WebWorkerFetchContext* CreateWorkerFetchContext() override; |
84 | 85 |
85 private: | 86 private: |
86 ~EmbeddedSharedWorkerStub() override; | 87 ~EmbeddedSharedWorkerStub() override; |
87 | 88 |
88 void Shutdown(); | 89 void Shutdown(); |
89 bool Send(IPC::Message* message); | 90 bool Send(IPC::Message* message); |
90 | 91 |
91 // WebSharedWorker will own |channel|. | 92 // WebSharedWorker will own |channel|. |
92 void ConnectToChannel(int connection_request_id, | 93 void ConnectToChannel(int connection_request_id, |
93 std::unique_ptr<WebMessagePortChannelImpl> channel); | 94 std::unique_ptr<WebMessagePortChannelImpl> channel); |
(...skipping 14 matching lines...) Expand all Loading... |
108 std::vector<PendingChannel> pending_channels_; | 109 std::vector<PendingChannel> pending_channels_; |
109 | 110 |
110 ScopedChildProcessReference process_ref_; | 111 ScopedChildProcessReference process_ref_; |
111 WebApplicationCacheHostImpl* app_cache_host_ = nullptr; | 112 WebApplicationCacheHostImpl* app_cache_host_ = nullptr; |
112 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); | 113 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); |
113 }; | 114 }; |
114 | 115 |
115 } // namespace content | 116 } // namespace content |
116 | 117 |
117 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H_ | 118 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H_ |
OLD | NEW |