| 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 20 matching lines...) Expand all Loading... |
| 31 #define ConsoleBase_h | 31 #define ConsoleBase_h |
| 32 | 32 |
| 33 #include "bindings/core/v8/ScriptState.h" | 33 #include "bindings/core/v8/ScriptState.h" |
| 34 #include "bindings/core/v8/ScriptWrappable.h" | 34 #include "bindings/core/v8/ScriptWrappable.h" |
| 35 #include "core/inspector/ConsoleAPITypes.h" | 35 #include "core/inspector/ConsoleAPITypes.h" |
| 36 #include "core/inspector/ScriptCallStack.h" | 36 #include "core/inspector/ScriptCallStack.h" |
| 37 #include "core/frame/ConsoleTypes.h" | 37 #include "core/frame/ConsoleTypes.h" |
| 38 #include "core/frame/DOMWindowProperty.h" | 38 #include "core/frame/DOMWindowProperty.h" |
| 39 #include "platform/heap/Handle.h" | 39 #include "platform/heap/Handle.h" |
| 40 #include "wtf/Forward.h" | 40 #include "wtf/Forward.h" |
| 41 #include "wtf/PassRefPtr.h" | |
| 42 #include "wtf/RefCounted.h" | |
| 43 | 41 |
| 44 namespace blink { | 42 namespace blink { |
| 45 | 43 |
| 46 class ConsoleMessage; | 44 class ConsoleMessage; |
| 47 class ScriptArguments; | 45 class ScriptArguments; |
| 48 | 46 |
| 49 class ConsoleBase : public RefCountedWillBeGarbageCollectedFinalized<ConsoleBase
>, public ScriptWrappable { | 47 class ConsoleBase : public GarbageCollectedFinalized<ConsoleBase>, public Script
Wrappable { |
| 50 DEFINE_WRAPPERTYPEINFO(); | 48 DEFINE_WRAPPERTYPEINFO(); |
| 51 public: | 49 public: |
| 52 void debug(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); | 50 void debug(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); |
| 53 void error(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); | 51 void error(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); |
| 54 void info(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); | 52 void info(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); |
| 55 void log(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); | 53 void log(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); |
| 56 void clear(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); | 54 void clear(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); |
| 57 void warn(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); | 55 void warn(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); |
| 58 void dir(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); | 56 void dir(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); |
| 59 void dirxml(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); | 57 void dirxml(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 84 private: | 82 private: |
| 85 void internalAddMessage(MessageType, MessageLevel, ScriptState*, PassRefPtrW
illBeRawPtr<ScriptArguments>, bool acceptNoArguments = false, bool printTrace =
false); | 83 void internalAddMessage(MessageType, MessageLevel, ScriptState*, PassRefPtrW
illBeRawPtr<ScriptArguments>, bool acceptNoArguments = false, bool printTrace =
false); |
| 86 | 84 |
| 87 HashCountedSet<String> m_counts; | 85 HashCountedSet<String> m_counts; |
| 88 HashMap<String, double> m_times; | 86 HashMap<String, double> m_times; |
| 89 }; | 87 }; |
| 90 | 88 |
| 91 } // namespace blink | 89 } // namespace blink |
| 92 | 90 |
| 93 #endif // ConsoleBase_h | 91 #endif // ConsoleBase_h |
| OLD | NEW |