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 std::unique_ptr<blink::WebWorkerFetchContext> CreateWorkerFetchContext( |
| 85 blink::WebServiceWorkerNetworkProvider*) override; |
84 | 86 |
85 private: | 87 private: |
86 ~EmbeddedSharedWorkerStub() override; | 88 ~EmbeddedSharedWorkerStub() override; |
87 | 89 |
88 void Shutdown(); | 90 void Shutdown(); |
89 bool Send(IPC::Message* message); | 91 bool Send(IPC::Message* message); |
90 | 92 |
91 // WebSharedWorker will own |channel|. | 93 // WebSharedWorker will own |channel|. |
92 void ConnectToChannel(int connection_request_id, | 94 void ConnectToChannel(int connection_request_id, |
93 std::unique_ptr<WebMessagePortChannelImpl> channel); | 95 std::unique_ptr<WebMessagePortChannelImpl> channel); |
(...skipping 14 matching lines...) Expand all Loading... |
108 std::vector<PendingChannel> pending_channels_; | 110 std::vector<PendingChannel> pending_channels_; |
109 | 111 |
110 ScopedChildProcessReference process_ref_; | 112 ScopedChildProcessReference process_ref_; |
111 WebApplicationCacheHostImpl* app_cache_host_ = nullptr; | 113 WebApplicationCacheHostImpl* app_cache_host_ = nullptr; |
112 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); | 114 DISALLOW_COPY_AND_ASSIGN(EmbeddedSharedWorkerStub); |
113 }; | 115 }; |
114 | 116 |
115 } // namespace content | 117 } // namespace content |
116 | 118 |
117 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H_ | 119 #endif // CONTENT_RENDERER_SHARED_WORKER_EMBEDDED_SHARED_WORKER_STUB_H_ |
OLD | NEW |