X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fcore%2Fframe%2FFrameConsole.h;h=846c099836834f13d179f17620429d4435a7d4d1;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=059e02f13f84204d83d3ebe330a2145eeea6dd21;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/core/frame/FrameConsole.h b/src/third_party/WebKit/Source/core/frame/FrameConsole.h index 059e02f..846c099 100644 --- a/src/third_party/WebKit/Source/core/frame/FrameConsole.h +++ b/src/third_party/WebKit/Source/core/frame/FrameConsole.h @@ -38,28 +38,48 @@ namespace blink { class ConsoleMessage; -class FrameHost; +class ConsoleMessageStorage; +class DocumentLoader; +class ResourceResponse; class ScriptCallStack; class WorkerGlobalScopeProxy; // FrameConsole takes per-frame console messages and routes them up through the FrameHost to the ChromeClient and Inspector. // It's meant as an abstraction around ChromeClient calls and the way that Blink core/ can add messages to the console. -class FrameConsole FINAL { +class FrameConsole FINAL : public NoBaseWillBeGarbageCollected { + DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(FrameConsole); public: - static PassOwnPtr create(LocalFrame& frame) { return adoptPtr(new FrameConsole(frame)); } + static PassOwnPtrWillBeRawPtr create(LocalFrame& frame) + { + return adoptPtrWillBeNoop(new FrameConsole(frame)); + } void addMessage(PassRefPtrWillBeRawPtr); - void adoptWorkerConsoleMessages(WorkerGlobalScopeProxy*); + void adoptWorkerMessagesAfterTermination(WorkerGlobalScopeProxy*); + + void reportResourceResponseReceived(DocumentLoader*, unsigned long requestIdentifier, const ResourceResponse&); static String formatStackTraceString(const String& originalMessage, PassRefPtrWillBeRawPtr); static void mute(); static void unmute(); + ConsoleMessageStorage* messageStorage(); + void clearMessages(); + + void trace(Visitor*); + private: explicit FrameConsole(LocalFrame&); - LocalFrame& m_frame; + LocalFrame& frame() const + { + ASSERT(m_frame); + return *m_frame; + } + + RawPtrWillBeMember m_frame; + OwnPtrWillBeMember m_consoleMessageStorage; }; } // namespace blink