| 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 class ConsoleMessage; | 39 class ConsoleMessage; |
| 40 class DocumentLoader; | 40 class DocumentLoader; |
| 41 class LocalFrame; | 41 class LocalFrame; |
| 42 class ResourceError; | 42 class ResourceError; |
| 43 class ResourceResponse; | 43 class ResourceResponse; |
| 44 class SourceLocation; | 44 class SourceLocation; |
| 45 | 45 |
| 46 // FrameConsole takes per-frame console messages and routes them up through the
FrameHost to the ChromeClient and Inspector. | 46 // FrameConsole takes per-frame console messages and routes them up through the |
| 47 // It's meant as an abstraction around ChromeClient calls and the way that Blink
core/ can add messages to the console. | 47 // FrameHost to the ChromeClient and Inspector. It's meant as an abstraction |
| 48 // around ChromeClient calls and the way that Blink core/ can add messages to |
| 49 // the console. |
| 48 class CORE_EXPORT FrameConsole final : public GarbageCollected<FrameConsole> { | 50 class CORE_EXPORT FrameConsole final : public GarbageCollected<FrameConsole> { |
| 49 public: | 51 public: |
| 50 static FrameConsole* create(LocalFrame& frame) { | 52 static FrameConsole* create(LocalFrame& frame) { |
| 51 return new FrameConsole(frame); | 53 return new FrameConsole(frame); |
| 52 } | 54 } |
| 53 | 55 |
| 54 void addMessage(ConsoleMessage*); | 56 void addMessage(ConsoleMessage*); |
| 55 void addMessageFromWorker(MessageLevel, | 57 void addMessageFromWorker(MessageLevel, |
| 56 const String& message, | 58 const String& message, |
| 57 std::unique_ptr<SourceLocation>, | 59 std::unique_ptr<SourceLocation>, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 73 | 75 |
| 74 private: | 76 private: |
| 75 explicit FrameConsole(LocalFrame&); | 77 explicit FrameConsole(LocalFrame&); |
| 76 | 78 |
| 77 Member<LocalFrame> m_frame; | 79 Member<LocalFrame> m_frame; |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 } // namespace blink | 82 } // namespace blink |
| 81 | 83 |
| 82 #endif // FrameConsole_h | 84 #endif // FrameConsole_h |
| OLD | NEW |