diff options
author | Teng-Hui Zhu <ztenghui@google.com> | 2010-11-10 15:31:59 -0800 |
---|---|---|
committer | Teng-Hui Zhu <ztenghui@google.com> | 2010-11-17 13:35:59 -0800 |
commit | 28040489d744e0c5d475a88663056c9040ed5320 (patch) | |
tree | c463676791e4a63e452a95f0a12b2a8519730693 /WebCore/inspector/ConsoleMessage.h | |
parent | eff9be92c41913c92fb1d3b7983c071f3e718678 (diff) | |
download | external_webkit-28040489d744e0c5d475a88663056c9040ed5320.zip external_webkit-28040489d744e0c5d475a88663056c9040ed5320.tar.gz external_webkit-28040489d744e0c5d475a88663056c9040ed5320.tar.bz2 |
Merge WebKit at r71558: Initial merge by git.
Change-Id: Ib345578fa29df7e4bc72b4f00e4a6fddcb754c4c
Diffstat (limited to 'WebCore/inspector/ConsoleMessage.h')
-rw-r--r-- | WebCore/inspector/ConsoleMessage.h | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/WebCore/inspector/ConsoleMessage.h b/WebCore/inspector/ConsoleMessage.h index 6c3f2c7..4e88bec 100644 --- a/WebCore/inspector/ConsoleMessage.h +++ b/WebCore/inspector/ConsoleMessage.h @@ -1,7 +1,7 @@ /* * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> - * Copyright (C) 2009 Google Inc. All rights reserved. + * Copyright (C) 2009, 2010 Google Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -32,15 +32,16 @@ #define ConsoleMessage_h #include "Console.h" -#include "KURL.h" #include "ScriptState.h" +#include <wtf/Forward.h> #include <wtf/Vector.h> namespace WebCore { class InjectedScriptHost; class InspectorFrontend; class InspectorObject; +class ScriptArguments; class ScriptCallFrame; class ScriptCallStack; class ScriptValue; @@ -48,12 +49,10 @@ class ScriptValue; class ConsoleMessage : public Noncopyable { public: ConsoleMessage(MessageSource, MessageType, MessageLevel, const String& m, unsigned li, const String& u, unsigned g); - ConsoleMessage(MessageSource, MessageType, MessageLevel, const String& m, ScriptCallStack*, unsigned g, bool storeTrace = false); + ConsoleMessage(MessageSource, MessageType, MessageLevel, const String& m, PassOwnPtr<ScriptArguments>, PassOwnPtr<ScriptCallStack>, unsigned g); -#if ENABLE(INSPECTOR) void addToFrontend(InspectorFrontend*, InjectedScriptHost*); void updateRepeatCountInConsole(InspectorFrontend* frontend); -#endif void incrementCount() { ++m_repeatCount; } bool isEqual(ConsoleMessage* msg) const; @@ -61,30 +60,12 @@ public: const String& message() const { return m_message; } private: - class CallFrame { - public: - explicit CallFrame(const ScriptCallFrame& frame); - CallFrame(); - bool isEqual(const CallFrame& o) const; -#if ENABLE(INSPECTOR) - PassRefPtr<InspectorObject> buildInspectorObject() const; -#endif - - private: - String m_functionName; - String m_sourceURL; - unsigned m_lineNumber; - }; - MessageSource m_source; MessageType m_type; MessageLevel m_level; String m_message; -#if ENABLE(INSPECTOR) - Vector<ScriptValue> m_arguments; - ScriptStateProtectedPtr m_scriptState; -#endif - Vector<CallFrame> m_frames; + OwnPtr<ScriptArguments> m_arguments; + OwnPtr<ScriptCallStack> m_callStack; unsigned m_line; String m_url; unsigned m_groupLevel; |