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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameConsole.cpp

Issue 1774323002: [DevTools] Remove extra plumbing from InspectorWorkerAgent, prepare to multi-client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed leaks 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) 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2013 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 return &m_frame->host()->consoleMessageStorage(); 153 return &m_frame->host()->consoleMessageStorage();
154 } 154 }
155 155
156 void FrameConsole::clearMessages() 156 void FrameConsole::clearMessages()
157 { 157 {
158 ConsoleMessageStorage* storage = messageStorage(); 158 ConsoleMessageStorage* storage = messageStorage();
159 if (storage) 159 if (storage)
160 storage->clear(m_frame->document()); 160 storage->clear(m_frame->document());
161 } 161 }
162 162
163 void FrameConsole::adoptWorkerMessagesAfterTermination(WorkerGlobalScopeProxy* p roxy) 163 void FrameConsole::adoptWorkerMessagesAfterTermination(WorkerInspectorProxy* pro xy)
164 { 164 {
165 ConsoleMessageStorage* storage = messageStorage(); 165 ConsoleMessageStorage* storage = messageStorage();
166 if (storage) 166 if (storage)
167 storage->adoptWorkerMessagesAfterTermination(proxy); 167 storage->adoptWorkerMessagesAfterTermination(proxy);
168 } 168 }
169 169
170 void FrameConsole::didFailLoading(unsigned long requestIdentifier, const Resourc eError& error) 170 void FrameConsole::didFailLoading(unsigned long requestIdentifier, const Resourc eError& error)
171 { 171 {
172 if (error.isCancellation()) // Report failures only. 172 if (error.isCancellation()) // Report failures only.
173 return; 173 return;
(...skipping 10 matching lines...) Expand all
184 consoleMessage->setRequestIdentifier(requestIdentifier); 184 consoleMessage->setRequestIdentifier(requestIdentifier);
185 storage->reportMessage(m_frame->document(), consoleMessage.release()); 185 storage->reportMessage(m_frame->document(), consoleMessage.release());
186 } 186 }
187 187
188 DEFINE_TRACE(FrameConsole) 188 DEFINE_TRACE(FrameConsole)
189 { 189 {
190 visitor->trace(m_frame); 190 visitor->trace(m_frame);
191 } 191 }
192 192
193 } // namespace blink 193 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameConsole.h ('k') | third_party/WebKit/Source/core/inspector/ConsoleMessage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698