| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 The Chromium Authors. All rights reserved. | 2 * Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef InspectorTracingAgent_h | 7 #ifndef InspectorTracingAgent_h |
| 8 #define InspectorTracingAgent_h | 8 #define InspectorTracingAgent_h |
| 9 | 9 |
| 10 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 return adoptPtrWillBeNoop(new InspectorTracingAgent(client, workerAgent,
pageAgent)); | 36 return adoptPtrWillBeNoop(new InspectorTracingAgent(client, workerAgent,
pageAgent)); |
| 37 } | 37 } |
| 38 | 38 |
| 39 DECLARE_VIRTUAL_TRACE(); | 39 DECLARE_VIRTUAL_TRACE(); |
| 40 | 40 |
| 41 // Base agent methods. | 41 // Base agent methods. |
| 42 void restore() override; | 42 void restore() override; |
| 43 void disable(ErrorString*) override; | 43 void disable(ErrorString*) override; |
| 44 | 44 |
| 45 // Protocol method implementations. | 45 // Protocol method implementations. |
| 46 virtual void start(ErrorString*, const String* categoryFilter, const String*
, const double*, PassRefPtrWillBeRawPtr<StartCallback>) override; | 46 void start(ErrorString*, const String* categoryFilter, const String*, const
double*, PassRefPtrWillBeRawPtr<StartCallback>) override; |
| 47 virtual void end(ErrorString*, PassRefPtrWillBeRawPtr<EndCallback>); | 47 virtual void end(ErrorString*, PassRefPtrWillBeRawPtr<EndCallback>); |
| 48 | 48 |
| 49 // Methods for other agents to use. | 49 // Methods for other agents to use. |
| 50 void setLayerTreeId(int); | 50 void setLayerTreeId(int); |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 InspectorTracingAgent(Client*, InspectorWorkerAgent*, InspectorPageAgent*); | 53 InspectorTracingAgent(Client*, InspectorWorkerAgent*, InspectorPageAgent*); |
| 54 | 54 |
| 55 void emitMetadataEvents(); | 55 void emitMetadataEvents(); |
| 56 void resetSessionId(); | 56 void resetSessionId(); |
| 57 String sessionId(); | 57 String sessionId(); |
| 58 | 58 |
| 59 int m_layerTreeId; | 59 int m_layerTreeId; |
| 60 Client* m_client; | 60 Client* m_client; |
| 61 RawPtrWillBeMember<InspectorWorkerAgent> m_workerAgent; | 61 RawPtrWillBeMember<InspectorWorkerAgent> m_workerAgent; |
| 62 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 62 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 } // namespace blink | 65 } // namespace blink |
| 66 | 66 |
| 67 #endif // InspectorTracingAgent_h | 67 #endif // InspectorTracingAgent_h |
| OLD | NEW |