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 <stddef.h> |
| 8 |
7 #include "content/child/child_thread_impl.h" | 9 #include "content/child/child_thread_impl.h" |
8 #include "content/common/devtools_messages.h" | 10 #include "content/common/devtools_messages.h" |
9 #include "ipc/ipc_channel.h" | 11 #include "ipc/ipc_channel.h" |
10 #include "third_party/WebKit/public/platform/WebCString.h" | 12 #include "third_party/WebKit/public/platform/WebCString.h" |
11 #include "third_party/WebKit/public/platform/WebString.h" | 13 #include "third_party/WebKit/public/platform/WebString.h" |
12 #include "third_party/WebKit/public/web/WebSharedWorker.h" | 14 #include "third_party/WebKit/public/web/WebSharedWorker.h" |
13 | 15 |
14 using blink::WebSharedWorker; | 16 using blink::WebSharedWorker; |
15 using blink::WebString; | 17 using blink::WebString; |
16 | 18 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 int session_id, | 100 int session_id, |
99 const std::string& message) { | 101 const std::string& message) { |
100 webworker_->dispatchDevToolsMessage(session_id, WebString::fromUTF8(message)); | 102 webworker_->dispatchDevToolsMessage(session_id, WebString::fromUTF8(message)); |
101 } | 103 } |
102 | 104 |
103 bool SharedWorkerDevToolsAgent::Send(IPC::Message* message) { | 105 bool SharedWorkerDevToolsAgent::Send(IPC::Message* message) { |
104 return ChildThreadImpl::current()->Send(message); | 106 return ChildThreadImpl::current()->Send(message); |
105 } | 107 } |
106 | 108 |
107 } // namespace content | 109 } // namespace content |
OLD | NEW |