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

Side by Side Diff: remoting/protocol/protobuf_video_reader.cc

Issue 4313001: Rename classes for Chromoting: (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Resolve merge conflicts Created 10 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/protobuf_video_reader.h ('k') | remoting/protocol/protobuf_video_writer.h » ('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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/protocol/protobuf_video_reader.h" 5 #include "remoting/protocol/protobuf_video_reader.h"
6 6
7 #include "base/task.h" 7 #include "base/task.h"
8 #include "remoting/protocol/chromotocol_connection.h" 8 #include "remoting/protocol/session.h"
9 9
10 namespace remoting { 10 namespace remoting {
11 11
12 ProtobufVideoReader::ProtobufVideoReader() { } 12 ProtobufVideoReader::ProtobufVideoReader() { }
13 ProtobufVideoReader::~ProtobufVideoReader() { } 13 ProtobufVideoReader::~ProtobufVideoReader() { }
14 14
15 void ProtobufVideoReader::Init(ChromotocolConnection* connection, 15 void ProtobufVideoReader::Init(protocol::Session* session,
16 VideoStub* video_stub) { 16 VideoStub* video_stub) {
17 reader_.Init<VideoPacket>(connection->video_channel(), 17 reader_.Init<VideoPacket>(session->video_channel(),
18 NewCallback(this, &ProtobufVideoReader::OnNewData)); 18 NewCallback(this, &ProtobufVideoReader::OnNewData));
19 video_stub_ = video_stub; 19 video_stub_ = video_stub;
20 } 20 }
21 21
22 void ProtobufVideoReader::Close() { 22 void ProtobufVideoReader::Close() {
23 reader_.Close(); 23 reader_.Close();
24 } 24 }
25 25
26 void ProtobufVideoReader::OnNewData(VideoPacket* packet) { 26 void ProtobufVideoReader::OnNewData(VideoPacket* packet) {
27 video_stub_->ProcessVideoPacket(packet, new DeleteTask<VideoPacket>(packet)); 27 video_stub_->ProcessVideoPacket(packet, new DeleteTask<VideoPacket>(packet));
28 } 28 }
29 29
30 } // namespace remoting 30 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/protobuf_video_reader.h ('k') | remoting/protocol/protobuf_video_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698