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

Unified Diff: content/browser/devtools/protocol/page_handler.cc

Issue 888573002: DevTools: FrameRecorder: add cancelRecordingFrames command (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/devtools/protocol/page_handler.cc
diff --git a/content/browser/devtools/protocol/page_handler.cc b/content/browser/devtools/protocol/page_handler.cc
index 84b6b103aa468aa755471c35aa317b664197d7ee..b7fcff4b67872e276b57f86b6d3d7ba3ebd10b84 100644
--- a/content/browser/devtools/protocol/page_handler.cc
+++ b/content/browser/devtools/protocol/page_handler.cc
@@ -410,9 +410,11 @@ Response PageHandler::StartRecordingFrames(int max_frame_count) {
return frame_recorder_->StartRecordingFrames(max_frame_count);
}
-Response PageHandler::StopRecordingFrames(DevToolsCommandId command_id) {
+Response PageHandler::StopRecordingFrames(
+ DevToolsCommandId command_id, const bool* cancel) {
return frame_recorder_->StopRecordingFrames(base::Bind(
- &PageHandler::OnFramesRecorded, base::Unretained(this), command_id));
+ &PageHandler::OnFramesRecorded, base::Unretained(this), command_id),
+ cancel && *cancel);
}
Response PageHandler::ScreencastFrameAck(int frame_number) {

Powered by Google App Engine
This is Rietveld 408576698