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/child/shared_worker_devtools_agent.h" | 5 #include "content/child/shared_worker_devtools_agent.h" |
6 | 6 |
7 #include "content/child/child_thread.h" | 7 #include "content/child/child_thread_impl.h" |
8 #include "content/common/devtools_messages.h" | 8 #include "content/common/devtools_messages.h" |
9 #include "ipc/ipc_channel.h" | 9 #include "ipc/ipc_channel.h" |
10 #include "third_party/WebKit/public/platform/WebCString.h" | 10 #include "third_party/WebKit/public/platform/WebCString.h" |
11 #include "third_party/WebKit/public/platform/WebString.h" | 11 #include "third_party/WebKit/public/platform/WebString.h" |
12 #include "third_party/WebKit/public/web/WebSharedWorker.h" | 12 #include "third_party/WebKit/public/web/WebSharedWorker.h" |
13 | 13 |
14 using blink::WebSharedWorker; | 14 using blink::WebSharedWorker; |
15 using blink::WebString; | 15 using blink::WebString; |
16 | 16 |
17 namespace content { | 17 namespace content { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 void SharedWorkerDevToolsAgent::OnDetach() { | 88 void SharedWorkerDevToolsAgent::OnDetach() { |
89 webworker_->detachDevTools(); | 89 webworker_->detachDevTools(); |
90 } | 90 } |
91 | 91 |
92 void SharedWorkerDevToolsAgent::OnDispatchOnInspectorBackend( | 92 void SharedWorkerDevToolsAgent::OnDispatchOnInspectorBackend( |
93 const std::string& message) { | 93 const std::string& message) { |
94 webworker_->dispatchDevToolsMessage(WebString::fromUTF8(message)); | 94 webworker_->dispatchDevToolsMessage(WebString::fromUTF8(message)); |
95 } | 95 } |
96 | 96 |
97 bool SharedWorkerDevToolsAgent::Send(IPC::Message* message) { | 97 bool SharedWorkerDevToolsAgent::Send(IPC::Message* message) { |
98 return ChildThread::current()->Send(message); | 98 return ChildThreadImpl::current()->Send(message); |
99 } | 99 } |
100 | 100 |
101 } // namespace content | 101 } // namespace content |
OLD | NEW |