| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void profileEnd(const String&); | 67 void profileEnd(const String&); |
| 68 void time(const String&); | 68 void time(const String&); |
| 69 void timeEnd(ScriptState*, const String&); | 69 void timeEnd(ScriptState*, const String&); |
| 70 void timeStamp(const String&); | 70 void timeStamp(const String&); |
| 71 void timeline(ScriptState*, const String&); | 71 void timeline(ScriptState*, const String&); |
| 72 void timelineEnd(ScriptState*, const String&); | 72 void timelineEnd(ScriptState*, const String&); |
| 73 void group(ScriptState*, PassRefPtr<ScriptArguments>); | 73 void group(ScriptState*, PassRefPtr<ScriptArguments>); |
| 74 void groupCollapsed(ScriptState*, PassRefPtr<ScriptArguments>); | 74 void groupCollapsed(ScriptState*, PassRefPtr<ScriptArguments>); |
| 75 void groupEnd(); | 75 void groupEnd(); |
| 76 | 76 |
| 77 virtual void trace(Visitor*) { } | |
| 78 | |
| 79 virtual ~ConsoleBase(); | 77 virtual ~ConsoleBase(); |
| 80 | 78 |
| 81 protected: | 79 protected: |
| 82 virtual ExecutionContext* context() = 0; | 80 virtual ExecutionContext* context() = 0; |
| 83 virtual void reportMessageToConsole(PassRefPtr<ConsoleMessage>) = 0; | 81 virtual void reportMessageToConsole(PassRefPtr<ConsoleMessage>) = 0; |
| 84 | 82 |
| 85 private: | 83 private: |
| 86 void internalAddMessage(MessageType, MessageLevel, ScriptState*, PassRefPtr<
ScriptArguments>, bool acceptNoArguments = false, bool printTrace = false); | 84 void internalAddMessage(MessageType, MessageLevel, ScriptState*, PassRefPtr<
ScriptArguments>, bool acceptNoArguments = false, bool printTrace = false); |
| 87 | 85 |
| 88 HashCountedSet<String> m_counts; | 86 HashCountedSet<String> m_counts; |
| 89 HashMap<String, double> m_times; | 87 HashMap<String, double> m_times; |
| 90 }; | 88 }; |
| 91 | 89 |
| 92 } // namespace blink | 90 } // namespace blink |
| 93 | 91 |
| 94 #endif // ConsoleBase_h | 92 #endif // ConsoleBase_h |
| OLD | NEW |