OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/worker/shared_worker_devtools_agent.h" | 5 #include "content/worker/shared_worker_devtools_agent.h" |
6 | 6 |
7 #include "content/common/devtools_messages.h" | 7 #include "content/common/devtools_messages.h" |
8 #include "content/worker/worker_thread.h" | 8 #include "content/worker/worker_thread.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorker.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
12 | 12 |
13 using WebKit::WebSharedWorker; | 13 using WebKit::WebSharedWorker; |
14 using WebKit::WebString; | 14 using WebKit::WebString; |
15 | 15 |
| 16 namespace content { |
| 17 |
16 SharedWorkerDevToolsAgent::SharedWorkerDevToolsAgent( | 18 SharedWorkerDevToolsAgent::SharedWorkerDevToolsAgent( |
17 int route_id, | 19 int route_id, |
18 WebSharedWorker* webworker) | 20 WebSharedWorker* webworker) |
19 : route_id_(route_id), | 21 : route_id_(route_id), |
20 webworker_(webworker) { | 22 webworker_(webworker) { |
21 } | 23 } |
22 | 24 |
23 SharedWorkerDevToolsAgent::~SharedWorkerDevToolsAgent() { | 25 SharedWorkerDevToolsAgent::~SharedWorkerDevToolsAgent() { |
24 } | 26 } |
25 | 27 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 webworker_->pauseWorkerContextOnStart(); | 77 webworker_->pauseWorkerContextOnStart(); |
76 } | 78 } |
77 | 79 |
78 void SharedWorkerDevToolsAgent::OnResumeWorkerContext() { | 80 void SharedWorkerDevToolsAgent::OnResumeWorkerContext() { |
79 webworker_->resumeWorkerContext(); | 81 webworker_->resumeWorkerContext(); |
80 } | 82 } |
81 | 83 |
82 bool SharedWorkerDevToolsAgent::Send(IPC::Message* message) { | 84 bool SharedWorkerDevToolsAgent::Send(IPC::Message* message) { |
83 return WorkerThread::current()->Send(message); | 85 return WorkerThread::current()->Send(message); |
84 } | 86 } |
| 87 |
| 88 } // namespace content |
OLD | NEW |