| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 void addMessageToConsole(ConsoleMessage*); | 70 void addMessageToConsole(ConsoleMessage*); |
| 71 void consoleMessagesCleared(); | 71 void consoleMessagesCleared(); |
| 72 | 72 |
| 73 void addProfileFinishedMessageToConsole(PassRefPtrWillBeRawPtr<ScriptProfile
>, unsigned lineNumber, const String& sourceURL); | 73 void addProfileFinishedMessageToConsole(PassRefPtrWillBeRawPtr<ScriptProfile
>, unsigned lineNumber, const String& sourceURL); |
| 74 void addStartProfilingMessageToConsole(const String& title, unsigned lineNum
ber, const String& sourceURL); | 74 void addStartProfilingMessageToConsole(const String& title, unsigned lineNum
ber, const String& sourceURL); |
| 75 virtual void addInspectedNode(ErrorString*, int nodeId) = 0; | 75 virtual void addInspectedNode(ErrorString*, int nodeId) = 0; |
| 76 virtual void addInspectedHeapObject(ErrorString*, int inspectedHeapObjectId)
override; | 76 virtual void addInspectedHeapObject(ErrorString*, int inspectedHeapObjectId)
override; |
| 77 | 77 |
| 78 virtual bool isWorkerAgent() = 0; | 78 virtual bool isWorkerAgent() = 0; |
| 79 | 79 |
| 80 virtual void setLastEvaluationResult(ErrorString*, const String& objectId) o
verride; | |
| 81 | |
| 82 protected: | 80 protected: |
| 83 void sendConsoleMessageToFrontend(ConsoleMessage*, bool generatePreview); | 81 void sendConsoleMessageToFrontend(ConsoleMessage*, bool generatePreview); |
| 84 virtual ConsoleMessageStorage* messageStorage() = 0; | 82 virtual ConsoleMessageStorage* messageStorage() = 0; |
| 85 | 83 |
| 86 virtual void enableStackCapturingIfNeeded() = 0; | 84 virtual void enableStackCapturingIfNeeded() = 0; |
| 87 virtual void disableStackCapturingIfNeeded() = 0; | 85 virtual void disableStackCapturingIfNeeded() = 0; |
| 88 | 86 |
| 89 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; | 87 RawPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; |
| 90 InspectorFrontend::Console* m_frontend; | 88 InspectorFrontend::Console* m_frontend; |
| 91 bool m_enabled; | 89 bool m_enabled; |
| 92 }; | 90 }; |
| 93 | 91 |
| 94 } // namespace blink | 92 } // namespace blink |
| 95 | 93 |
| 96 | 94 |
| 97 #endif // !defined(InspectorConsoleAgent_h) | 95 #endif // !defined(InspectorConsoleAgent_h) |
| OLD | NEW |