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/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/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 SharedWorkerDevToolsAgent::SharedWorkerDevToolsAgent( | 16 SharedWorkerDevToolsAgent::SharedWorkerDevToolsAgent( |
17 int route_id, | 17 int route_id, |
18 WebSharedWorker* webworker) | 18 WebSharedWorker* webworker) |
19 : route_id_(route_id), | 19 : route_id_(route_id), |
20 webworker_(webworker) { | 20 webworker_(webworker) { |
21 } | 21 } |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 webworker_->pauseWorkerContextOnStart(); | 75 webworker_->pauseWorkerContextOnStart(); |
76 } | 76 } |
77 | 77 |
78 void SharedWorkerDevToolsAgent::OnResumeWorkerContext() { | 78 void SharedWorkerDevToolsAgent::OnResumeWorkerContext() { |
79 webworker_->resumeWorkerContext(); | 79 webworker_->resumeWorkerContext(); |
80 } | 80 } |
81 | 81 |
82 bool SharedWorkerDevToolsAgent::Send(IPC::Message* message) { | 82 bool SharedWorkerDevToolsAgent::Send(IPC::Message* message) { |
83 return WorkerThread::current()->Send(message); | 83 return WorkerThread::current()->Send(message); |
84 } | 84 } |
OLD | NEW |