| 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 22 matching lines...) Expand all Loading... |
| 33 #include "sky/engine/platform/heap/Handle.h" | 33 #include "sky/engine/platform/heap/Handle.h" |
| 34 #include "sky/engine/wtf/Forward.h" | 34 #include "sky/engine/wtf/Forward.h" |
| 35 #include "sky/engine/wtf/PassOwnPtr.h" | 35 #include "sky/engine/wtf/PassOwnPtr.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 class ConsoleMessage; | 39 class ConsoleMessage; |
| 40 class ConsoleMessageStorage; | 40 class ConsoleMessageStorage; |
| 41 class Document; | 41 class Document; |
| 42 class FrameHost; | 42 class FrameHost; |
| 43 class ResourceResponse; | |
| 44 class LocalFrame; | 43 class LocalFrame; |
| 45 | 44 |
| 46 // FrameConsole takes per-frame console messages and routes them up through the
FrameHost to the ChromeClient and Inspector. | 45 // FrameConsole takes per-frame console messages and routes them up through the
FrameHost to the ChromeClient and Inspector. |
| 47 // It's meant as an abstraction around ChromeClient calls and the way that Blink
core/ can add messages to the console. | 46 // It's meant as an abstraction around ChromeClient calls and the way that Blink
core/ can add messages to the console. |
| 48 class FrameConsole final { | 47 class FrameConsole final { |
| 49 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(FrameConsole); | 48 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(FrameConsole); |
| 50 public: | 49 public: |
| 51 static PassOwnPtr<FrameConsole> create(LocalFrame& frame) | 50 static PassOwnPtr<FrameConsole> create(LocalFrame& frame) |
| 52 { | 51 { |
| 53 return adoptPtr(new FrameConsole(frame)); | 52 return adoptPtr(new FrameConsole(frame)); |
| 54 } | 53 } |
| 55 | 54 |
| 56 void addMessage(PassRefPtr<ConsoleMessage>); | 55 void addMessage(PassRefPtr<ConsoleMessage>); |
| 57 | 56 |
| 58 void reportResourceResponseReceived(Document*, unsigned long requestIdentifi
er, const ResourceResponse&); | |
| 59 | |
| 60 private: | 57 private: |
| 61 explicit FrameConsole(LocalFrame&); | 58 explicit FrameConsole(LocalFrame&); |
| 62 | 59 |
| 63 LocalFrame& m_frame; | 60 LocalFrame& m_frame; |
| 64 }; | 61 }; |
| 65 | 62 |
| 66 } // namespace blink | 63 } // namespace blink |
| 67 | 64 |
| 68 #endif // SKY_ENGINE_CORE_FRAME_FRAMECONSOLE_H_ | 65 #endif // SKY_ENGINE_CORE_FRAME_FRAMECONSOLE_H_ |
| OLD | NEW |