| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |