| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 int muteCount = 0; | 49 int muteCount = 0; |
| 50 | 50 |
| 51 } | 51 } |
| 52 | 52 |
| 53 FrameConsole::FrameConsole(LocalFrame& frame) | 53 FrameConsole::FrameConsole(LocalFrame& frame) |
| 54 : m_frame(frame) | 54 : m_frame(frame) |
| 55 { | 55 { |
| 56 } | 56 } |
| 57 | 57 |
| 58 FrameConsole::~FrameConsole() | 58 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(FrameConsole); |
| 59 { | |
| 60 } | |
| 61 | 59 |
| 62 void FrameConsole::addMessage(PassRefPtrWillBeRawPtr<ConsoleMessage> prpConsoleM
essage) | 60 void FrameConsole::addMessage(PassRefPtrWillBeRawPtr<ConsoleMessage> prpConsoleM
essage) |
| 63 { | 61 { |
| 64 RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = prpConsoleMessage; | 62 RefPtrWillBeRawPtr<ConsoleMessage> consoleMessage = prpConsoleMessage; |
| 65 if (muteCount && consoleMessage->source() != ConsoleAPIMessageSource) | 63 if (muteCount && consoleMessage->source() != ConsoleAPIMessageSource) |
| 66 return; | 64 return; |
| 67 | 65 |
| 68 // FIXME: This should not need to reach for the main-frame. | 66 // FIXME: This should not need to reach for the main-frame. |
| 69 // Inspector code should just take the current frame and know how to walk it
self. | 67 // Inspector code should just take the current frame and know how to walk it
self. |
| 70 ExecutionContext* context = m_frame.document(); | 68 ExecutionContext* context = m_frame.document(); |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 if (!m_consoleMessageStorage) | 146 if (!m_consoleMessageStorage) |
| 149 m_consoleMessageStorage = ConsoleMessageStorage::createForFrame(&m_frame
); | 147 m_consoleMessageStorage = ConsoleMessageStorage::createForFrame(&m_frame
); |
| 150 return m_consoleMessageStorage.get(); | 148 return m_consoleMessageStorage.get(); |
| 151 } | 149 } |
| 152 | 150 |
| 153 void FrameConsole::adoptWorkerConsoleMessages(WorkerGlobalScopeProxy* proxy) | 151 void FrameConsole::adoptWorkerConsoleMessages(WorkerGlobalScopeProxy* proxy) |
| 154 { | 152 { |
| 155 InspectorInstrumentation::adoptWorkerConsoleMessages(m_frame.document(), pro
xy); | 153 InspectorInstrumentation::adoptWorkerConsoleMessages(m_frame.document(), pro
xy); |
| 156 } | 154 } |
| 157 | 155 |
| 156 void FrameConsole::trace(Visitor* visitor) |
| 157 { |
| 158 visitor->trace(m_consoleMessageStorage); |
| 159 } |
| 160 |
| 158 } // namespace blink | 161 } // namespace blink |
| OLD | NEW |