| 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 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 class ConsoleMessage; | 40 class ConsoleMessage; |
| 41 class ConsoleMessageStorage; | 41 class ConsoleMessageStorage; |
| 42 class Document; | 42 class Document; |
| 43 class FrameHost; | 43 class FrameHost; |
| 44 class ResourceResponse; | 44 class ResourceResponse; |
| 45 class ScriptCallStack; | 45 class ScriptCallStack; |
| 46 | 46 |
| 47 // FrameConsole takes per-frame console messages and routes them up through the
FrameHost to the ChromeClient and Inspector. | 47 // FrameConsole takes per-frame console messages and routes them up through the
FrameHost to the ChromeClient and Inspector. |
| 48 // It's meant as an abstraction around ChromeClient calls and the way that Blink
core/ can add messages to the console. | 48 // It's meant as an abstraction around ChromeClient calls and the way that Blink
core/ can add messages to the console. |
| 49 class FrameConsole final : public DummyBase<FrameConsole> { | 49 class FrameConsole final { |
| 50 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(FrameConsole); | 50 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(FrameConsole); |
| 51 public: | 51 public: |
| 52 static PassOwnPtr<FrameConsole> create(LocalFrame& frame) | 52 static PassOwnPtr<FrameConsole> create(LocalFrame& frame) |
| 53 { | 53 { |
| 54 return adoptPtr(new FrameConsole(frame)); | 54 return adoptPtr(new FrameConsole(frame)); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void addMessage(PassRefPtr<ConsoleMessage>); | 57 void addMessage(PassRefPtr<ConsoleMessage>); |
| 58 | 58 |
| 59 void reportResourceResponseReceived(Document*, unsigned long requestIdentifi
er, const ResourceResponse&); | 59 void reportResourceResponseReceived(Document*, unsigned long requestIdentifi
er, const ResourceResponse&); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 72 explicit FrameConsole(LocalFrame&); | 72 explicit FrameConsole(LocalFrame&); |
| 73 | 73 |
| 74 LocalFrame& m_frame; | 74 LocalFrame& m_frame; |
| 75 | 75 |
| 76 OwnPtr<ConsoleMessageStorage> m_consoleMessageStorage; | 76 OwnPtr<ConsoleMessageStorage> m_consoleMessageStorage; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| 80 | 80 |
| 81 #endif // FrameConsole_h | 81 #endif // FrameConsole_h |
| OLD | NEW |