Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(604)

Side by Side Diff: Source/core/inspector/InspectorTracingAgent.h

Issue 1307863003: Add support for returning traces as streams in DevTools protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: extracted test to a separate CL, moved IO from browser_protocol.json to protocol.json Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 void start(ErrorString*, const String* categoryFilter, const String*, const double*, PassRefPtrWillBeRawPtr<StartCallback>) override; 46 void start(ErrorString*, const String* categoryFilter, const String*, const double*, const String*, PassRefPtrWillBeRawPtr<StartCallback>) override;
47 virtual void end(ErrorString*, PassRefPtrWillBeRawPtr<EndCallback>); 47 void end(ErrorString*, PassRefPtrWillBeRawPtr<EndCallback>) override;
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
OLDNEW
« no previous file with comments | « Source/core/inspector/CodeGeneratorInspector.py ('k') | Source/core/inspector/InspectorTracingAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698