| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "core/frame/ConsoleTypes.h" | 33 #include "core/frame/ConsoleTypes.h" |
| 34 #include "wtf/Forward.h" | 34 #include "wtf/Forward.h" |
| 35 #include "wtf/HashCountedSet.h" | 35 #include "wtf/HashCountedSet.h" |
| 36 #include "wtf/HashMap.h" | 36 #include "wtf/HashMap.h" |
| 37 #include "wtf/Noncopyable.h" | 37 #include "wtf/Noncopyable.h" |
| 38 #include "wtf/Vector.h" | 38 #include "wtf/Vector.h" |
| 39 #include "wtf/text/StringHash.h" | 39 #include "wtf/text/StringHash.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class InspectorConsoleMessage; | 43 class ConsoleMessage; |
| 44 class DocumentLoader; | 44 class DocumentLoader; |
| 45 class LocalDOMWindow; | 45 class LocalDOMWindow; |
| 46 class LocalFrame; | 46 class LocalFrame; |
| 47 class InspectorConsoleMessage; |
| 47 class InspectorFrontend; | 48 class InspectorFrontend; |
| 48 class InjectedScriptManager; | 49 class InjectedScriptManager; |
| 49 class InspectorTimelineAgent; | 50 class InspectorTimelineAgent; |
| 50 class InspectorTracingAgent; | 51 class InspectorTracingAgent; |
| 51 class InstrumentingAgents; | 52 class InstrumentingAgents; |
| 52 class ResourceError; | 53 class ResourceError; |
| 53 class ResourceLoader; | 54 class ResourceLoader; |
| 54 class ResourceResponse; | 55 class ResourceResponse; |
| 55 class ScriptArguments; | 56 class ScriptArguments; |
| 56 class ScriptCallStack; | 57 class ScriptCallStack; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 72 virtual void disable(ErrorString*) OVERRIDE FINAL; | 73 virtual void disable(ErrorString*) OVERRIDE FINAL; |
| 73 virtual void clearMessages(ErrorString*) OVERRIDE; | 74 virtual void clearMessages(ErrorString*) OVERRIDE; |
| 74 bool enabled() { return m_enabled; } | 75 bool enabled() { return m_enabled; } |
| 75 void reset(); | 76 void reset(); |
| 76 | 77 |
| 77 virtual void setFrontend(InspectorFrontend*) OVERRIDE FINAL; | 78 virtual void setFrontend(InspectorFrontend*) OVERRIDE FINAL; |
| 78 virtual void clearFrontend() OVERRIDE FINAL; | 79 virtual void clearFrontend() OVERRIDE FINAL; |
| 79 virtual void restore() OVERRIDE FINAL; | 80 virtual void restore() OVERRIDE FINAL; |
| 80 | 81 |
| 81 void addConsoleAPIMessageToConsole(MessageType, MessageLevel, const String&
message, ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>, unsigned long re
questIdentifier = 0); | 82 void addConsoleAPIMessageToConsole(MessageType, MessageLevel, const String&
message, ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>, unsigned long re
questIdentifier = 0); |
| 82 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing& message, const String& scriptId, unsigned lineNumber, unsigned columnNumber
= 0, ScriptState* = 0, unsigned long requestIdentifier = 0); | 83 void addMessageToConsole(ConsoleMessage*); |
| 83 | |
| 84 // FIXME: Remove once we no longer generate stacks outside of Inspector. | |
| 85 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing& message, PassRefPtrWillBeRawPtr<ScriptCallStack>, unsigned long requestIden
tifier = 0); | |
| 86 | 84 |
| 87 Vector<unsigned> consoleMessageArgumentCounts(); | 85 Vector<unsigned> consoleMessageArgumentCounts(); |
| 88 | 86 |
| 89 void consoleTime(ExecutionContext*, const String& title); | 87 void consoleTime(ExecutionContext*, const String& title); |
| 90 void consoleTimeEnd(ExecutionContext*, const String& title, ScriptState*); | 88 void consoleTimeEnd(ExecutionContext*, const String& title, ScriptState*); |
| 91 void setTracingBasedTimeline(ErrorString*, bool enabled); | 89 void setTracingBasedTimeline(ErrorString*, bool enabled); |
| 92 void consoleTimeline(ExecutionContext*, const String& title, ScriptState*); | 90 void consoleTimeline(ExecutionContext*, const String& title, ScriptState*); |
| 93 void consoleTimelineEnd(ExecutionContext*, const String& title, ScriptState*
); | 91 void consoleTimelineEnd(ExecutionContext*, const String& title, ScriptState*
); |
| 94 | 92 |
| 95 void consoleCount(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); | 93 void consoleCount(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 121 HashMap<String, double> m_times; | 119 HashMap<String, double> m_times; |
| 122 bool m_enabled; | 120 bool m_enabled; |
| 123 private: | 121 private: |
| 124 static int s_enabledAgentCount; | 122 static int s_enabledAgentCount; |
| 125 }; | 123 }; |
| 126 | 124 |
| 127 } // namespace blink | 125 } // namespace blink |
| 128 | 126 |
| 129 | 127 |
| 130 #endif // !defined(InspectorConsoleAgent_h) | 128 #endif // !defined(InspectorConsoleAgent_h) |
| OLD | NEW |