| 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 20 matching lines...) Expand all Loading... |
| 31 #include <memory> | 31 #include <memory> |
| 32 #include "bindings/core/v8/SourceLocation.h" | 32 #include "bindings/core/v8/SourceLocation.h" |
| 33 #include "core/frame/FrameHost.h" | 33 #include "core/frame/FrameHost.h" |
| 34 #include "core/frame/LocalFrame.h" | 34 #include "core/frame/LocalFrame.h" |
| 35 #include "core/inspector/ConsoleMessage.h" | 35 #include "core/inspector/ConsoleMessage.h" |
| 36 #include "core/inspector/ConsoleMessageStorage.h" | 36 #include "core/inspector/ConsoleMessageStorage.h" |
| 37 #include "core/inspector/MainThreadDebugger.h" | 37 #include "core/inspector/MainThreadDebugger.h" |
| 38 #include "core/loader/DocumentLoader.h" | 38 #include "core/loader/DocumentLoader.h" |
| 39 #include "core/page/ChromeClient.h" | 39 #include "core/page/ChromeClient.h" |
| 40 #include "core/page/Page.h" | 40 #include "core/page/Page.h" |
| 41 #include "platform/network/ResourceError.h" | 41 #include "platform/loader/fetch/ResourceError.h" |
| 42 #include "platform/network/ResourceResponse.h" | 42 #include "platform/loader/fetch/ResourceResponse.h" |
| 43 #include "wtf/text/StringBuilder.h" | 43 #include "wtf/text/StringBuilder.h" |
| 44 | 44 |
| 45 namespace blink { | 45 namespace blink { |
| 46 | 46 |
| 47 FrameConsole::FrameConsole(LocalFrame& frame) : m_frame(&frame) {} | 47 FrameConsole::FrameConsole(LocalFrame& frame) : m_frame(&frame) {} |
| 48 | 48 |
| 49 void FrameConsole::addMessage(ConsoleMessage* consoleMessage) { | 49 void FrameConsole::addMessage(ConsoleMessage* consoleMessage) { |
| 50 // PlzNavigate: when trying to commit a navigation, the SourceLocation | 50 // PlzNavigate: when trying to commit a navigation, the SourceLocation |
| 51 // information for how the request was triggered has been stored in the | 51 // information for how the request was triggered has been stored in the |
| 52 // provisional DocumentLoader. Use it instead. | 52 // provisional DocumentLoader. Use it instead. |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 addMessageToStorage(ConsoleMessage::createForRequest( | 156 addMessageToStorage(ConsoleMessage::createForRequest( |
| 157 NetworkMessageSource, ErrorMessageLevel, message.toString(), | 157 NetworkMessageSource, ErrorMessageLevel, message.toString(), |
| 158 error.failingURL(), requestIdentifier)); | 158 error.failingURL(), requestIdentifier)); |
| 159 } | 159 } |
| 160 | 160 |
| 161 DEFINE_TRACE(FrameConsole) { | 161 DEFINE_TRACE(FrameConsole) { |
| 162 visitor->trace(m_frame); | 162 visitor->trace(m_frame); |
| 163 } | 163 } |
| 164 | 164 |
| 165 } // namespace blink | 165 } // namespace blink |
| OLD | NEW |