Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Side by Side Diff: content/child/shared_worker_devtools_agent.cc

Issue 158953008: Implementations of SharedWorker in the renderer process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WorkerMessages
Patch Set: rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/child/shared_worker_devtools_agent.h"
6 6
7 #include "content/child/child_thread.h"
7 #include "content/common/devtools_messages.h" 8 #include "content/common/devtools_messages.h"
8 #include "content/worker/worker_thread.h"
9 #include "third_party/WebKit/public/platform/WebCString.h" 9 #include "third_party/WebKit/public/platform/WebCString.h"
10 #include "third_party/WebKit/public/platform/WebString.h" 10 #include "third_party/WebKit/public/platform/WebString.h"
11 #include "third_party/WebKit/public/web/WebSharedWorker.h" 11 #include "third_party/WebKit/public/web/WebSharedWorker.h"
12 12
13 using blink::WebSharedWorker; 13 using blink::WebSharedWorker;
14 using blink::WebString; 14 using blink::WebString;
15 15
16 namespace content { 16 namespace content {
17 17
18 SharedWorkerDevToolsAgent::SharedWorkerDevToolsAgent( 18 SharedWorkerDevToolsAgent::SharedWorkerDevToolsAgent(
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 void SharedWorkerDevToolsAgent::OnPauseWorkerContextOnStart() { 76 void SharedWorkerDevToolsAgent::OnPauseWorkerContextOnStart() {
77 webworker_->pauseWorkerContextOnStart(); 77 webworker_->pauseWorkerContextOnStart();
78 } 78 }
79 79
80 void SharedWorkerDevToolsAgent::OnResumeWorkerContext() { 80 void SharedWorkerDevToolsAgent::OnResumeWorkerContext() {
81 webworker_->resumeWorkerContext(); 81 webworker_->resumeWorkerContext();
82 } 82 }
83 83
84 bool SharedWorkerDevToolsAgent::Send(IPC::Message* message) { 84 bool SharedWorkerDevToolsAgent::Send(IPC::Message* message) {
85 return WorkerThread::current()->Send(message); 85 return ChildThread::current()->Send(message);
86 } 86 }
87 87
88 } // namespace content 88 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698