| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 | 71 |
| 72 void addMessageToConsole(ConsoleMessage*); | 72 void addMessageToConsole(ConsoleMessage*); |
| 73 void consoleMessagesCleared(); | 73 void consoleMessagesCleared(); |
| 74 | 74 |
| 75 void setTracingBasedTimeline(ErrorString*, bool enabled); | 75 void setTracingBasedTimeline(ErrorString*, bool enabled); |
| 76 void consoleTimeline(ExecutionContext*, const String& title, ScriptState*); | 76 void consoleTimeline(ExecutionContext*, const String& title, ScriptState*); |
| 77 void consoleTimelineEnd(ExecutionContext*, const String& title, ScriptState*
); | 77 void consoleTimelineEnd(ExecutionContext*, const String& title, ScriptState*
); |
| 78 | 78 |
| 79 void didCommitLoad(LocalFrame*, DocumentLoader*); | 79 void didCommitLoad(LocalFrame*, DocumentLoader*); |
| 80 | 80 |
| 81 void didFinishXHRLoading(XMLHttpRequest*, ThreadableLoaderClient*, unsigned
long requestIdentifier, ScriptString, const AtomicString& method, const String&
url, const String& sendURL, unsigned sendLineNumber); | 81 void didFinishXHRLoading(XMLHttpRequest*, ThreadableLoaderClient*, unsigned
long requestIdentifier, ScriptString, const AtomicString& method, const String&
url); |
| 82 void addProfileFinishedMessageToConsole(PassRefPtrWillBeRawPtr<ScriptProfile
>, unsigned lineNumber, const String& sourceURL); | 82 void addProfileFinishedMessageToConsole(PassRefPtrWillBeRawPtr<ScriptProfile
>, unsigned lineNumber, const String& sourceURL); |
| 83 void addStartProfilingMessageToConsole(const String& title, unsigned lineNum
ber, const String& sourceURL); | 83 void addStartProfilingMessageToConsole(const String& title, unsigned lineNum
ber, const String& sourceURL); |
| 84 virtual void setMonitoringXHREnabled(ErrorString*, bool enabled) override; | 84 virtual void setMonitoringXHREnabled(ErrorString*, bool enabled) override; |
| 85 virtual void addInspectedNode(ErrorString*, int nodeId) = 0; | 85 virtual void addInspectedNode(ErrorString*, int nodeId) = 0; |
| 86 virtual void addInspectedHeapObject(ErrorString*, int inspectedHeapObjectId)
override; | 86 virtual void addInspectedHeapObject(ErrorString*, int inspectedHeapObjectId)
override; |
| 87 | 87 |
| 88 virtual bool isWorkerAgent() = 0; | 88 virtual bool isWorkerAgent() = 0; |
| 89 | 89 |
| 90 virtual void setLastEvaluationResult(ErrorString*, const String& objectId) o
verride; | 90 virtual void setLastEvaluationResult(ErrorString*, const String& objectId) o
verride; |
| 91 | 91 |
| 92 protected: | 92 protected: |
| 93 void sendConsoleMessageToFrontend(ConsoleMessage*, bool generatePreview); | 93 void sendConsoleMessageToFrontend(ConsoleMessage*, bool generatePreview); |
| 94 virtual ConsoleMessageStorage* messageStorage() = 0; | 94 virtual ConsoleMessageStorage* messageStorage() = 0; |
| 95 | 95 |
| 96 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent; | 96 RawPtrWillBeMember<InspectorTimelineAgent> m_timelineAgent; |
| 97 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; | 97 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; |
| 98 InspectorFrontend::Console* m_frontend; | 98 InspectorFrontend::Console* m_frontend; |
| 99 bool m_enabled; | 99 bool m_enabled; |
| 100 private: | 100 private: |
| 101 static int s_enabledAgentCount; | 101 static int s_enabledAgentCount; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace blink | 104 } // namespace blink |
| 105 | 105 |
| 106 | 106 |
| 107 #endif // !defined(InspectorConsoleAgent_h) | 107 #endif // !defined(InspectorConsoleAgent_h) |
| OLD | NEW |