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

Unified Diff: media/cast/net/cast_net_sender.h

Issue 100823015: Cast: move net->transport (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updating transport callback Created 7 years 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
« no previous file with comments | « media/cast/net/cast_net_defines.h ('k') | media/cast/net/frame_id_wrap_helper_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/net/cast_net_sender.h
diff --git a/media/cast/net/cast_net_sender.h b/media/cast/net/cast_net_sender.h
deleted file mode 100644
index 1691681adea34c5bd3fe6fa4729f548c9b9c53b9..0000000000000000000000000000000000000000
--- a/media/cast/net/cast_net_sender.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-//
-// This is the main interface for the cast net sender. The cast sender handles
-// the cast pipeline from encoded frames (both audio and video), to encryption,
-// packetization and transport.
-// All configurations are done at creation.
-
-#ifndef MEDIA_CAST_NET_CAST_NET_SENDER_H_
-#define MEDIA_CAST_NET_CAST_NET_SENDER_H_
-
-#include "base/basictypes.h"
-#include "base/threading/non_thread_safe.h"
-#include "base/time/tick_clock.h"
-#include "media/cast/net/cast_net_defines.h"
-
-namespace media {
-class AudioBus;
-class VideoFrame;
-}
-
-namespace media {
-namespace cast {
-namespace transport {
-
-class CastNetNotification {
- public:
- enum CastNetStatus {
- UNINITIALIZED,
- INITIALIZED,
- INVALID_CRYPTO_CONFIG,
- SOCKET_ERROR,
- // TODO(mikhal): Add.
- };
-
- virtual void NotifyStatusChange(CastNetStatus result) = 0;
- virtual ~CastNetNotification() {}
-};
-
-// This Class is not thread safe.
-// The application should only trigger this class from one thread.
-class CastNetSender : public base::NonThreadSafe {
- public:
- static CastNetSender* CreateCastNetSender(
- base::TickClock* clock,
- const CastNetConfig& config,
- CastNetNotification* const notifier,
- scoped_refptr<PacketReceiver> packet_receiver);
-
- virtual ~CastNetSender() {}
- virtual void InsertCodedAudioFrame(const AudioBus* audio_bus,
- const base::TimeTicks& recorded_time) = 0;
-
- virtual void InsertCodedVideoFrame(const EncodedVideoFrame* video_frame,
- const base::TimeTicks& capture_time) = 0;
-
- virtual void SendRtcpFromRtpSender(
- uint32 packet_type_flags,
- const RtcpSenderInfo& sender_info,
- const RtcpDlrrReportBlock& dlrr,
- const RtcpSenderLogMessage& sender_log) = 0;
-
- virtual void ResendPackets(
- const MissingFramesAndPacketsMap& missing_packets) = 0;
-};
-
-} // namespace transport
-} // namespace cast
-} // namespace media
-
-#endif // MEDIA_CAST_NET_CAST_NET_SENDER_H_
« no previous file with comments | « media/cast/net/cast_net_defines.h ('k') | media/cast/net/frame_id_wrap_helper_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698