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

Side by Side Diff: third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp

Issue 1738073002: DevTools: introduce protocol::Value, baseline for hierarchical data in remote debugging protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 { 86 {
87 visitor->trace(m_workerGlobalScope); 87 visitor->trace(m_workerGlobalScope);
88 } 88 }
89 89
90 private: 90 private:
91 explicit PageInspectorProxy(WorkerGlobalScope* workerGlobalScope) 91 explicit PageInspectorProxy(WorkerGlobalScope* workerGlobalScope)
92 : m_workerGlobalScope(workerGlobalScope) 92 : m_workerGlobalScope(workerGlobalScope)
93 { 93 {
94 } 94 }
95 95
96 void sendProtocolResponse(int sessionId, int callId, PassRefPtr<JSONObject> message) override 96 void sendProtocolResponse(int sessionId, int callId, PassRefPtr<protocol::Di ctionaryValue> message) override
97 { 97 {
98 // Worker messages are wrapped, no need to handle callId. 98 // Worker messages are wrapped, no need to handle callId.
99 m_workerGlobalScope->thread()->workerReportingProxy().postMessageToPageI nspector(message->toJSONString()); 99 m_workerGlobalScope->thread()->workerReportingProxy().postMessageToPageI nspector(message->toJSONString());
100 } 100 }
101 void sendProtocolNotification(PassRefPtr<JSONObject> message) override 101 void sendProtocolNotification(PassRefPtr<protocol::DictionaryValue> message) override
102 { 102 {
103 m_workerGlobalScope->thread()->workerReportingProxy().postMessageToPageI nspector(message->toJSONString()); 103 m_workerGlobalScope->thread()->workerReportingProxy().postMessageToPageI nspector(message->toJSONString());
104 } 104 }
105 void flush() override { } 105 void flush() override { }
106 106
107 RawPtrWillBeMember<WorkerGlobalScope> m_workerGlobalScope; 107 RawPtrWillBeMember<WorkerGlobalScope> m_workerGlobalScope;
108 }; 108 };
109 109
110 WorkerInspectorController::WorkerInspectorController(WorkerGlobalScope* workerGl obalScope) 110 WorkerInspectorController::WorkerInspectorController(WorkerGlobalScope* workerGl obalScope)
111 : m_workerGlobalScope(workerGlobalScope) 111 : m_workerGlobalScope(workerGlobalScope)
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 { 243 {
244 visitor->trace(m_workerGlobalScope); 244 visitor->trace(m_workerGlobalScope);
245 visitor->trace(m_instrumentingAgents); 245 visitor->trace(m_instrumentingAgents);
246 visitor->trace(m_agents); 246 visitor->trace(m_agents);
247 visitor->trace(m_pageInspectorProxy); 247 visitor->trace(m_pageInspectorProxy);
248 visitor->trace(m_workerDebuggerAgent); 248 visitor->trace(m_workerDebuggerAgent);
249 visitor->trace(m_workerRuntimeAgent); 249 visitor->trace(m_workerRuntimeAgent);
250 } 250 }
251 251
252 } // namespace blink 252 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698