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

Side by Side 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, 10 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 #include "content/browser/devtools/protocol/page_handler.h" 5 #include "content/browser/devtools/protocol/page_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 408
409 Response PageHandler::StartRecordingFrames(int max_frame_count) { 409 Response PageHandler::StartRecordingFrames(int max_frame_count) {
410 return frame_recorder_->StartRecordingFrames(max_frame_count); 410 return frame_recorder_->StartRecordingFrames(max_frame_count);
411 } 411 }
412 412
413 Response PageHandler::StopRecordingFrames(DevToolsCommandId command_id) { 413 Response PageHandler::StopRecordingFrames(DevToolsCommandId command_id) {
414 return frame_recorder_->StopRecordingFrames(base::Bind( 414 return frame_recorder_->StopRecordingFrames(base::Bind(
415 &PageHandler::OnFramesRecorded, base::Unretained(this), command_id)); 415 &PageHandler::OnFramesRecorded, base::Unretained(this), command_id));
416 } 416 }
417 417
418 Response PageHandler::CancelRecordingFrames() {
419 return frame_recorder_->CancelRecordingFrames();
420 }
421
418 Response PageHandler::ScreencastFrameAck(int frame_number) { 422 Response PageHandler::ScreencastFrameAck(int frame_number) {
419 screencast_frame_acked_ = frame_number; 423 screencast_frame_acked_ = frame_number;
420 return Response::OK(); 424 return Response::OK();
421 } 425 }
422 426
423 Response PageHandler::HandleJavaScriptDialog(bool accept, 427 Response PageHandler::HandleJavaScriptDialog(bool accept,
424 const std::string* prompt_text) { 428 const std::string* prompt_text) {
425 base::string16 prompt_override; 429 base::string16 prompt_override;
426 if (prompt_text) 430 if (prompt_text)
427 prompt_override = base::UTF8ToUTF16(*prompt_text); 431 prompt_override = base::UTF8ToUTF16(*prompt_text);
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 636
633 void PageHandler::QueryUsageAndQuotaCompleted( 637 void PageHandler::QueryUsageAndQuotaCompleted(
634 DevToolsCommandId command_id, 638 DevToolsCommandId command_id,
635 scoped_refptr<QueryUsageAndQuotaResponse> response_data) { 639 scoped_refptr<QueryUsageAndQuotaResponse> response_data) {
636 client_->SendQueryUsageAndQuotaResponse(command_id, response_data); 640 client_->SendQueryUsageAndQuotaResponse(command_id, response_data);
637 } 641 }
638 642
639 } // namespace page 643 } // namespace page
640 } // namespace devtools 644 } // namespace devtools
641 } // namespace content 645 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698