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

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

Issue 4446005: Chromoting: Rename ChromotocolConfig -> SessionConfig (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Rename candidate_config vars 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/video_writer.h ('k') | remoting/remoting.gyp » ('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/video_writer.h" 5 #include "remoting/protocol/video_writer.h"
6 6
7 #include "remoting/protocol/chromotocol_config.h" 7 #include "remoting/protocol/session_config.h"
8 #include "remoting/protocol/protobuf_video_writer.h" 8 #include "remoting/protocol/protobuf_video_writer.h"
9 #include "remoting/protocol/rtp_video_writer.h" 9 #include "remoting/protocol/rtp_video_writer.h"
10 10
11 namespace remoting { 11 namespace remoting {
12 namespace protocol { 12 namespace protocol {
13 13
14 VideoWriter::~VideoWriter() { } 14 VideoWriter::~VideoWriter() { }
15 15
16 // static 16 // static
17 VideoWriter* VideoWriter::Create(const ChromotocolConfig* config) { 17 VideoWriter* VideoWriter::Create(const SessionConfig* config) {
18 const ChannelConfig& video_config = config->video_config(); 18 const ChannelConfig& video_config = config->video_config();
19 if (video_config.transport == ChannelConfig::TRANSPORT_SRTP) { 19 if (video_config.transport == ChannelConfig::TRANSPORT_SRTP) {
20 return new RtpVideoWriter(); 20 return new RtpVideoWriter();
21 } else if (video_config.transport == ChannelConfig::TRANSPORT_STREAM) { 21 } else if (video_config.transport == ChannelConfig::TRANSPORT_STREAM) {
22 return new ProtobufVideoWriter(); 22 return new ProtobufVideoWriter();
23 } 23 }
24 return NULL; 24 return NULL;
25 } 25 }
26 26
27 } // namespace protocol 27 } // namespace protocol
28 } // namespace remoting 28 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/video_writer.h ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698