| 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 #include "content/renderer/shared_worker/embedded_shared_worker_stub.h" | 5 #include "content/renderer/shared_worker/embedded_shared_worker_stub.h" |
| 6 | 6 |
| 7 #include "base/message_loop/message_loop_proxy.h" | 7 #include "base/message_loop/message_loop_proxy.h" |
| 8 #include "content/child/appcache/appcache_dispatcher.h" | 8 #include "content/child/appcache/appcache_dispatcher.h" |
| 9 #include "content/child/appcache/web_application_cache_host_impl.h" | 9 #include "content/child/appcache/web_application_cache_host_impl.h" |
| 10 #include "content/child/scoped_child_process_reference.h" | 10 #include "content/child/scoped_child_process_reference.h" |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 return app_cache_host_; | 161 return app_cache_host_; |
| 162 } | 162 } |
| 163 | 163 |
| 164 blink::WebWorkerPermissionClientProxy* | 164 blink::WebWorkerPermissionClientProxy* |
| 165 EmbeddedSharedWorkerStub::createWorkerPermissionClientProxy( | 165 EmbeddedSharedWorkerStub::createWorkerPermissionClientProxy( |
| 166 const blink::WebSecurityOrigin& origin) { | 166 const blink::WebSecurityOrigin& origin) { |
| 167 return new EmbeddedSharedWorkerPermissionClientProxy( | 167 return new EmbeddedSharedWorkerPermissionClientProxy( |
| 168 GURL(origin.toString()), | 168 GURL(origin.toString()), |
| 169 origin.isUnique(), | 169 origin.isUnique(), |
| 170 route_id_, | 170 route_id_, |
| 171 ChildThread::current()->thread_safe_sender()); | 171 ChildThreadImpl::current()->thread_safe_sender()); |
| 172 } | 172 } |
| 173 | 173 |
| 174 void EmbeddedSharedWorkerStub::sendDevToolsMessage( | 174 void EmbeddedSharedWorkerStub::sendDevToolsMessage( |
| 175 int call_id, | 175 int call_id, |
| 176 const blink::WebString& message, | 176 const blink::WebString& message, |
| 177 const blink::WebString& state) { | 177 const blink::WebString& state) { |
| 178 worker_devtools_agent_->SendDevToolsMessage(call_id, message, state); | 178 worker_devtools_agent_->SendDevToolsMessage(call_id, message, state); |
| 179 } | 179 } |
| 180 | 180 |
| 181 void EmbeddedSharedWorkerStub::Shutdown() { | 181 void EmbeddedSharedWorkerStub::Shutdown() { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 209 pending_channels_.push_back(channel); | 209 pending_channels_.push_back(channel); |
| 210 } | 210 } |
| 211 } | 211 } |
| 212 | 212 |
| 213 void EmbeddedSharedWorkerStub::OnTerminateWorkerContext() { | 213 void EmbeddedSharedWorkerStub::OnTerminateWorkerContext() { |
| 214 runing_ = false; | 214 runing_ = false; |
| 215 impl_->terminateWorkerContext(); | 215 impl_->terminateWorkerContext(); |
| 216 } | 216 } |
| 217 | 217 |
| 218 } // namespace content | 218 } // namespace content |
| OLD | NEW |