| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 4 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 class ConsoleMessage { | 50 class ConsoleMessage { |
| 51 WTF_MAKE_NONCOPYABLE(ConsoleMessage); WTF_MAKE_FAST_ALLOCATED; | 51 WTF_MAKE_NONCOPYABLE(ConsoleMessage); WTF_MAKE_FAST_ALLOCATED; |
| 52 public: | 52 public: |
| 53 ConsoleMessage(bool canGenerateCallStack, MessageSource, MessageType, Messag
eLevel, const String& message); | 53 ConsoleMessage(bool canGenerateCallStack, MessageSource, MessageType, Messag
eLevel, const String& message); |
| 54 ConsoleMessage(bool canGenerateCallStack, MessageSource, MessageType, Messag
eLevel, const String& message, const String& url, unsigned line, unsigned column
, ScriptState*, unsigned long requestIdentifier); | 54 ConsoleMessage(bool canGenerateCallStack, MessageSource, MessageType, Messag
eLevel, const String& message, const String& url, unsigned line, unsigned column
, ScriptState*, unsigned long requestIdentifier); |
| 55 ConsoleMessage(bool canGenerateCallStack, MessageSource, MessageType, Messag
eLevel, const String& message, PassRefPtr<ScriptCallStack>, unsigned long reques
tIdentifier); | 55 ConsoleMessage(bool canGenerateCallStack, MessageSource, MessageType, Messag
eLevel, const String& message, PassRefPtr<ScriptCallStack>, unsigned long reques
tIdentifier); |
| 56 ConsoleMessage(bool canGenerateCallStack, MessageSource, MessageType, Messag
eLevel, const String& message, PassRefPtr<ScriptArguments>, ScriptState*, unsign
ed long requestIdentifier); | 56 ConsoleMessage(bool canGenerateCallStack, MessageSource, MessageType, Messag
eLevel, const String& message, PassRefPtr<ScriptArguments>, ScriptState*, unsign
ed long requestIdentifier); |
| 57 ~ConsoleMessage(); | 57 ~ConsoleMessage(); |
| 58 | 58 |
| 59 void addToFrontend(InspectorFrontend::Console*, InjectedScriptManager*, bool
generatePreview); | 59 void addToFrontend(InspectorFrontend::Console*, InjectedScriptManager*, bool
generatePreview); |
| 60 void updateRepeatCountInConsole(InspectorFrontend::Console*); | |
| 61 void incrementCount(); | |
| 62 void setTimestamp(double timestamp) { m_timestamp = timestamp; } | 60 void setTimestamp(double timestamp) { m_timestamp = timestamp; } |
| 63 bool isEqual(ConsoleMessage* msg) const; | |
| 64 | 61 |
| 65 MessageType type() const { return m_type; } | 62 MessageType type() const { return m_type; } |
| 66 | 63 |
| 67 void windowCleared(DOMWindow*); | 64 void windowCleared(DOMWindow*); |
| 68 | 65 |
| 69 unsigned argumentCount(); | 66 unsigned argumentCount(); |
| 70 | 67 |
| 71 private: | 68 private: |
| 72 void autogenerateMetadata(bool canGenerateCallStack, ScriptState* = 0); | 69 void autogenerateMetadata(bool canGenerateCallStack, ScriptState* = 0); |
| 73 | 70 |
| 74 MessageSource m_source; | 71 MessageSource m_source; |
| 75 MessageType m_type; | 72 MessageType m_type; |
| 76 MessageLevel m_level; | 73 MessageLevel m_level; |
| 77 String m_message; | 74 String m_message; |
| 78 RefPtr<ScriptArguments> m_arguments; | 75 RefPtr<ScriptArguments> m_arguments; |
| 79 RefPtr<ScriptCallStack> m_callStack; | 76 RefPtr<ScriptCallStack> m_callStack; |
| 80 String m_url; | 77 String m_url; |
| 81 unsigned m_line; | 78 unsigned m_line; |
| 82 unsigned m_column; | 79 unsigned m_column; |
| 83 unsigned m_repeatCount; | |
| 84 String m_requestId; | 80 String m_requestId; |
| 85 double m_timestamp; | 81 double m_timestamp; |
| 86 }; | 82 }; |
| 87 | 83 |
| 88 } // namespace WebCore | 84 } // namespace WebCore |
| 89 | 85 |
| 90 #endif // ConsoleMessage_h | 86 #endif // ConsoleMessage_h |
| OLD | NEW |