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

Side by Side Diff: remoting/host/video_frame_recorder_host_extension.cc

Issue 1550693002: Global conversion of Pass()→std::move() on Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « printing/printed_page.cc ('k') | sql/connection.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "remoting/host/video_frame_recorder_host_extension.h" 5 #include "remoting/host/video_frame_recorder_host_extension.h"
6 6
7 #include <utility>
8
7 #include "base/base64.h" 9 #include "base/base64.h"
8 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
9 #include "base/json/json_writer.h" 11 #include "base/json/json_writer.h"
10 #include "base/logging.h" 12 #include "base/logging.h"
11 #include "base/macros.h" 13 #include "base/macros.h"
12 #include "base/values.h" 14 #include "base/values.h"
13 #include "remoting/codec/video_encoder_verbatim.h" 15 #include "remoting/codec/video_encoder_verbatim.h"
14 #include "remoting/host/host_extension_session.h" 16 #include "remoting/host/host_extension_session.h"
15 #include "remoting/host/video_frame_recorder.h" 17 #include "remoting/host/video_frame_recorder.h"
16 #include "remoting/proto/control.pb.h" 18 #include "remoting/proto/control.pb.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 video_frame_recorder_.SetMaxContentBytes(max_content_bytes); 59 video_frame_recorder_.SetMaxContentBytes(max_content_bytes);
58 } 60 }
59 61
60 VideoFrameRecorderHostExtensionSession:: 62 VideoFrameRecorderHostExtensionSession::
61 ~VideoFrameRecorderHostExtensionSession() { 63 ~VideoFrameRecorderHostExtensionSession() {
62 } 64 }
63 65
64 void VideoFrameRecorderHostExtensionSession::OnCreateVideoEncoder( 66 void VideoFrameRecorderHostExtensionSession::OnCreateVideoEncoder(
65 scoped_ptr<VideoEncoder>* encoder) { 67 scoped_ptr<VideoEncoder>* encoder) {
66 video_frame_recorder_.DetachVideoEncoderWrapper(); 68 video_frame_recorder_.DetachVideoEncoderWrapper();
67 *encoder = video_frame_recorder_.WrapVideoEncoder(encoder->Pass()); 69 *encoder = video_frame_recorder_.WrapVideoEncoder(std::move(*encoder));
68 } 70 }
69 71
70 bool VideoFrameRecorderHostExtensionSession::ModifiesVideoPipeline() const { 72 bool VideoFrameRecorderHostExtensionSession::ModifiesVideoPipeline() const {
71 return true; 73 return true;
72 } 74 }
73 75
74 bool VideoFrameRecorderHostExtensionSession::OnExtensionMessage( 76 bool VideoFrameRecorderHostExtensionSession::OnExtensionMessage(
75 ClientSessionControl* client_session_control, 77 ClientSessionControl* client_session_control,
76 protocol::ClientStub* client_stub, 78 protocol::ClientStub* client_stub,
77 const protocol::ExtensionMessage& message) { 79 const protocol::ExtensionMessage& message) {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 191
190 scoped_ptr<HostExtensionSession> 192 scoped_ptr<HostExtensionSession>
191 VideoFrameRecorderHostExtension::CreateExtensionSession( 193 VideoFrameRecorderHostExtension::CreateExtensionSession(
192 ClientSessionControl* client_session_control, 194 ClientSessionControl* client_session_control,
193 protocol::ClientStub* client_stub) { 195 protocol::ClientStub* client_stub) {
194 return make_scoped_ptr( 196 return make_scoped_ptr(
195 new VideoFrameRecorderHostExtensionSession(max_content_bytes_)); 197 new VideoFrameRecorderHostExtensionSession(max_content_bytes_));
196 } 198 }
197 199
198 } // namespace remoting 200 } // namespace remoting
OLDNEW
« no previous file with comments | « printing/printed_page.cc ('k') | sql/connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698