| 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 27 matching lines...) Expand all Loading... |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 class ConsoleMessage; | 40 class ConsoleMessage; |
| 41 class DocumentLoader; | 41 class DocumentLoader; |
| 42 class LocalFrame; | 42 class LocalFrame; |
| 43 class ResourceError; | 43 class ResourceError; |
| 44 class ResourceResponse; | 44 class ResourceResponse; |
| 45 class SourceLocation; | 45 class SourceLocation; |
| 46 | 46 |
| 47 // FrameConsole takes per-frame console messages and routes them up through the | 47 // FrameConsole takes per-frame console messages and routes them up through the |
| 48 // FrameHost to the ChromeClient and Inspector. It's meant as an abstraction | 48 // Page to the ChromeClient and Inspector. It's meant as an abstraction |
| 49 // around ChromeClient calls and the way that Blink core/ can add messages to | 49 // around ChromeClient calls and the way that Blink core/ can add messages to |
| 50 // the console. | 50 // the console. |
| 51 class CORE_EXPORT FrameConsole final | 51 class CORE_EXPORT FrameConsole final |
| 52 : public GarbageCollectedFinalized<FrameConsole> { | 52 : public GarbageCollectedFinalized<FrameConsole> { |
| 53 public: | 53 public: |
| 54 static FrameConsole* create(LocalFrame& frame) { | 54 static FrameConsole* create(LocalFrame& frame) { |
| 55 return new FrameConsole(frame); | 55 return new FrameConsole(frame); |
| 56 } | 56 } |
| 57 | 57 |
| 58 void addMessage(ConsoleMessage*); | 58 void addMessage(ConsoleMessage*); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 82 private: | 82 private: |
| 83 explicit FrameConsole(LocalFrame&); | 83 explicit FrameConsole(LocalFrame&); |
| 84 | 84 |
| 85 Member<LocalFrame> m_frame; | 85 Member<LocalFrame> m_frame; |
| 86 HashSet<String> m_singletonMessages; | 86 HashSet<String> m_singletonMessages; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace blink | 89 } // namespace blink |
| 90 | 90 |
| 91 #endif // FrameConsole_h | 91 #endif // FrameConsole_h |
| OLD | NEW |