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 21 matching lines...) Expand all Loading... |
32 #include "bindings/core/v8/SourceLocation.h" | 32 #include "bindings/core/v8/SourceLocation.h" |
33 #include "core/frame/LocalFrame.h" | 33 #include "core/frame/LocalFrame.h" |
34 #include "core/inspector/ConsoleMessage.h" | 34 #include "core/inspector/ConsoleMessage.h" |
35 #include "core/inspector/ConsoleMessageStorage.h" | 35 #include "core/inspector/ConsoleMessageStorage.h" |
36 #include "core/inspector/MainThreadDebugger.h" | 36 #include "core/inspector/MainThreadDebugger.h" |
37 #include "core/loader/DocumentLoader.h" | 37 #include "core/loader/DocumentLoader.h" |
38 #include "core/page/ChromeClient.h" | 38 #include "core/page/ChromeClient.h" |
39 #include "core/page/Page.h" | 39 #include "core/page/Page.h" |
40 #include "platform/loader/fetch/ResourceError.h" | 40 #include "platform/loader/fetch/ResourceError.h" |
41 #include "platform/loader/fetch/ResourceResponse.h" | 41 #include "platform/loader/fetch/ResourceResponse.h" |
42 #include "wtf/text/StringBuilder.h" | 42 #include "platform/wtf/text/StringBuilder.h" |
43 | 43 |
44 namespace blink { | 44 namespace blink { |
45 | 45 |
46 FrameConsole::FrameConsole(LocalFrame& frame) : frame_(&frame) {} | 46 FrameConsole::FrameConsole(LocalFrame& frame) : frame_(&frame) {} |
47 | 47 |
48 void FrameConsole::AddMessage(ConsoleMessage* console_message) { | 48 void FrameConsole::AddMessage(ConsoleMessage* console_message) { |
49 // PlzNavigate: when trying to commit a navigation, the SourceLocation | 49 // PlzNavigate: when trying to commit a navigation, the SourceLocation |
50 // information for how the request was triggered has been stored in the | 50 // information for how the request was triggered has been stored in the |
51 // provisional DocumentLoader. Use it instead. | 51 // provisional DocumentLoader. Use it instead. |
52 DocumentLoader* provisional_loader = | 52 DocumentLoader* provisional_loader = |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 AddMessageToStorage(ConsoleMessage::CreateForRequest( | 155 AddMessageToStorage(ConsoleMessage::CreateForRequest( |
156 kNetworkMessageSource, kErrorMessageLevel, message.ToString(), | 156 kNetworkMessageSource, kErrorMessageLevel, message.ToString(), |
157 error.FailingURL(), request_identifier)); | 157 error.FailingURL(), request_identifier)); |
158 } | 158 } |
159 | 159 |
160 DEFINE_TRACE(FrameConsole) { | 160 DEFINE_TRACE(FrameConsole) { |
161 visitor->Trace(frame_); | 161 visitor->Trace(frame_); |
162 } | 162 } |
163 | 163 |
164 } // namespace blink | 164 } // namespace blink |
OLD | NEW |