| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 class InspectorTimelineAgent; | 50 class InspectorTimelineAgent; |
| 51 class InspectorTracingAgent; | 51 class InspectorTracingAgent; |
| 52 class InstrumentingAgents; | 52 class InstrumentingAgents; |
| 53 class ResourceError; | 53 class ResourceError; |
| 54 class ResourceLoader; | 54 class ResourceLoader; |
| 55 class ResourceResponse; | 55 class ResourceResponse; |
| 56 class ScriptArguments; | 56 class ScriptArguments; |
| 57 class ScriptCallStack; | 57 class ScriptCallStack; |
| 58 class ScriptProfile; | 58 class ScriptProfile; |
| 59 class ThreadableLoaderClient; | 59 class ThreadableLoaderClient; |
| 60 class WorkerGlobalScopeProxy; |
| 60 class XMLHttpRequest; | 61 class XMLHttpRequest; |
| 61 | 62 |
| 62 typedef String ErrorString; | 63 typedef String ErrorString; |
| 63 | 64 |
| 64 class InspectorConsoleAgent : public InspectorBaseAgent<InspectorConsoleAgent>,
public InspectorBackendDispatcher::ConsoleCommandHandler { | 65 class InspectorConsoleAgent : public InspectorBaseAgent<InspectorConsoleAgent>,
public InspectorBackendDispatcher::ConsoleCommandHandler { |
| 65 WTF_MAKE_NONCOPYABLE(InspectorConsoleAgent); | 66 WTF_MAKE_NONCOPYABLE(InspectorConsoleAgent); |
| 66 public: | 67 public: |
| 67 InspectorConsoleAgent(InspectorTimelineAgent*, InspectorTracingAgent*, Injec
tedScriptManager*); | 68 InspectorConsoleAgent(InspectorTimelineAgent*, InspectorTracingAgent*, Injec
tedScriptManager*); |
| 68 virtual ~InspectorConsoleAgent(); | 69 virtual ~InspectorConsoleAgent(); |
| 69 virtual void trace(Visitor*) OVERRIDE; | 70 virtual void trace(Visitor*) OVERRIDE; |
| 70 | 71 |
| 71 virtual void init() OVERRIDE; | 72 virtual void init() OVERRIDE; |
| 72 virtual void enable(ErrorString*) OVERRIDE FINAL; | 73 virtual void enable(ErrorString*) OVERRIDE FINAL; |
| 73 virtual void disable(ErrorString*) OVERRIDE FINAL; | 74 virtual void disable(ErrorString*) OVERRIDE FINAL; |
| 74 virtual void clearMessages(ErrorString*) OVERRIDE; | 75 virtual void clearMessages(ErrorString*) OVERRIDE; |
| 75 bool enabled() { return m_enabled; } | 76 bool enabled() { return m_enabled; } |
| 76 void reset(); | 77 void reset(); |
| 77 | 78 |
| 78 virtual void setFrontend(InspectorFrontend*) OVERRIDE FINAL; | 79 virtual void setFrontend(InspectorFrontend*) OVERRIDE FINAL; |
| 79 virtual void clearFrontend() OVERRIDE FINAL; | 80 virtual void clearFrontend() OVERRIDE FINAL; |
| 80 virtual void restore() OVERRIDE FINAL; | 81 virtual void restore() OVERRIDE FINAL; |
| 81 | 82 |
| 82 void addConsoleAPIMessageToConsole(MessageType, MessageLevel, const String&
message, ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>, unsigned long re
questIdentifier = 0); | 83 void addConsoleAPIMessageToConsole(MessageType, MessageLevel, const String&
message, ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>, unsigned long re
questIdentifier = 0); |
| 83 void addMessageToConsole(ConsoleMessage*); | 84 void addMessageToConsole(ConsoleMessage*); |
| 84 | 85 void addMessageToConsoleFromWorker(WorkerGlobalScopeProxy*, ConsoleMessage*)
; |
| 86 void workerGlobalScopeTerminated(WorkerGlobalScopeProxy*); |
| 85 Vector<unsigned> consoleMessageArgumentCounts(); | 87 Vector<unsigned> consoleMessageArgumentCounts(); |
| 86 | 88 |
| 87 void consoleTime(ExecutionContext*, const String& title); | 89 void consoleTime(ExecutionContext*, const String& title); |
| 88 void consoleTimeEnd(ExecutionContext*, const String& title, ScriptState*); | 90 void consoleTimeEnd(ExecutionContext*, const String& title, ScriptState*); |
| 89 void setTracingBasedTimeline(ErrorString*, bool enabled); | 91 void setTracingBasedTimeline(ErrorString*, bool enabled); |
| 90 void consoleTimeline(ExecutionContext*, const String& title, ScriptState*); | 92 void consoleTimeline(ExecutionContext*, const String& title, ScriptState*); |
| 91 void consoleTimelineEnd(ExecutionContext*, const String& title, ScriptState*
); | 93 void consoleTimelineEnd(ExecutionContext*, const String& title, ScriptState*
); |
| 92 | 94 |
| 93 void consoleCount(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); | 95 void consoleCount(ScriptState*, PassRefPtrWillBeRawPtr<ScriptArguments>); |
| 94 | 96 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 119 HashMap<String, double> m_times; | 121 HashMap<String, double> m_times; |
| 120 bool m_enabled; | 122 bool m_enabled; |
| 121 private: | 123 private: |
| 122 static int s_enabledAgentCount; | 124 static int s_enabledAgentCount; |
| 123 }; | 125 }; |
| 124 | 126 |
| 125 } // namespace blink | 127 } // namespace blink |
| 126 | 128 |
| 127 | 129 |
| 128 #endif // !defined(InspectorConsoleAgent_h) | 130 #endif // !defined(InspectorConsoleAgent_h) |
| OLD | NEW |