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

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

Issue 897563002: Unify the three places that patch font loading for PDFium on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698