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

Side by Side Diff: content/browser/devtools/protocol/tracing_handler.h

Issue 1765153002: Update DevTools Tracing.Start to accept trace config as a parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 void OnTraceDataCollected(const std::string& trace_fragment); 45 void OnTraceDataCollected(const std::string& trace_fragment);
46 void OnTraceComplete(); 46 void OnTraceComplete();
47 void OnTraceToStreamComplete(const std::string& stream_handle); 47 void OnTraceToStreamComplete(const std::string& stream_handle);
48 48
49 // Protocol methods. 49 // Protocol methods.
50 Response Start(DevToolsCommandId command_id, 50 Response Start(DevToolsCommandId command_id,
51 const std::string* categories, 51 const std::string* categories,
52 const std::string* options, 52 const std::string* options,
53 const double* buffer_usage_reporting_interval, 53 const double* buffer_usage_reporting_interval,
54 const std::string* transfer_mode); 54 const std::string* transfer_mode,
55 const scoped_ptr<base::DictionaryValue>& config);
55 Response End(DevToolsCommandId command_id); 56 Response End(DevToolsCommandId command_id);
56 Response GetCategories(DevToolsCommandId command); 57 Response GetCategories(DevToolsCommandId command);
57 Response RequestMemoryDump(DevToolsCommandId command_id); 58 Response RequestMemoryDump(DevToolsCommandId command_id);
58 Response RecordClockSyncMarker(const std::string& sync_id); 59 Response RecordClockSyncMarker(const std::string& sync_id);
59 60
60 bool did_initiate_recording() { return did_initiate_recording_; } 61 bool did_initiate_recording() { return did_initiate_recording_; }
61 62
62 private: 63 private:
63 void OnRecordingEnabled(DevToolsCommandId command_id); 64 void OnRecordingEnabled(DevToolsCommandId command_id);
64 void OnBufferUsage(float percent_full, size_t approximate_event_count); 65 void OnBufferUsage(float percent_full, size_t approximate_event_count);
(...skipping 20 matching lines...) Expand all
85 base::WeakPtrFactory<TracingHandler> weak_factory_; 86 base::WeakPtrFactory<TracingHandler> weak_factory_;
86 87
87 DISALLOW_COPY_AND_ASSIGN(TracingHandler); 88 DISALLOW_COPY_AND_ASSIGN(TracingHandler);
88 }; 89 };
89 90
90 } // namespace tracing 91 } // namespace tracing
91 } // namespace devtools 92 } // namespace devtools
92 } // namespace content 93 } // namespace content
93 94
94 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_ 95 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_TRACING_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698