OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void profileEnd(const String&); | 66 void profileEnd(const String&); |
67 void time(const String&); | 67 void time(const String&); |
68 void timeEnd(ScriptState*, const String&); | 68 void timeEnd(ScriptState*, const String&); |
69 void timeStamp(const String&); | 69 void timeStamp(const String&); |
70 void timeline(ScriptState*, const String&); | 70 void timeline(ScriptState*, const String&); |
71 void timelineEnd(ScriptState*, const String&); | 71 void timelineEnd(ScriptState*, const String&); |
72 void group(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); | 72 void group(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); |
73 void groupCollapsed(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); | 73 void groupCollapsed(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); |
74 void groupEnd(); | 74 void groupEnd(); |
75 | 75 |
76 virtual void trace(Visitor*) { } | 76 DEFINE_INLINE_VIRTUAL_TRACE() { } |
77 | 77 |
78 virtual ~ConsoleBase(); | 78 virtual ~ConsoleBase(); |
79 | 79 |
80 protected: | 80 protected: |
81 virtual ExecutionContext* context() = 0; | 81 virtual ExecutionContext* context() = 0; |
82 virtual void reportMessageToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage>)
= 0; | 82 virtual void reportMessageToConsole(PassRefPtrWillBeRawPtr<ConsoleMessage>)
= 0; |
83 | 83 |
84 private: | 84 private: |
85 void internalAddMessage(MessageType, MessageLevel, ScriptState*, PassRefPtrW
illBeRawPtr<ScriptArguments>, bool acceptNoArguments = false, bool printTrace =
false); | 85 void internalAddMessage(MessageType, MessageLevel, ScriptState*, PassRefPtrW
illBeRawPtr<ScriptArguments>, bool acceptNoArguments = false, bool printTrace =
false); |
86 | 86 |
87 HashCountedSet<String> m_counts; | 87 HashCountedSet<String> m_counts; |
88 HashMap<String, double> m_times; | 88 HashMap<String, double> m_times; |
89 }; | 89 }; |
90 | 90 |
91 } // namespace blink | 91 } // namespace blink |
92 | 92 |
93 #endif // ConsoleBase_h | 93 #endif // ConsoleBase_h |
OLD | NEW |