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

Unified Diff: remoting/protocol/video_writer.h

Issue 577473002: Simplify VideoReader and VideoWriter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/video_reader.cc ('k') | remoting/protocol/video_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/video_writer.h
diff --git a/remoting/protocol/video_writer.h b/remoting/protocol/video_writer.h
deleted file mode 100644
index 06bc4694717ad828c89dd7cd8941be62750b0389..0000000000000000000000000000000000000000
--- a/remoting/protocol/video_writer.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright (c) 2012 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.
-
-// VideoWriter is a generic interface used by ConnectionToClient to
-// write into the video stream. ProtobufVideoWriter implements this
-// interface for protobuf video streams.
-
-#ifndef REMOTING_PROTOCOL_VIDEO_WRITER_H_
-#define REMOTING_PROTOCOL_VIDEO_WRITER_H_
-
-#include "base/basictypes.h"
-#include "base/callback.h"
-#include "remoting/protocol/video_stub.h"
-
-namespace remoting {
-namespace protocol {
-
-class Session;
-class SessionConfig;
-
-class VideoWriter : public VideoStub {
- public:
- virtual ~VideoWriter();
-
- // The callback is called when initialization is finished. The
- // parameter is set to true on success.
- typedef base::Callback<void(bool)> InitializedCallback;
-
- static scoped_ptr<VideoWriter> Create(const SessionConfig& config);
-
- // Initializes the writer.
- virtual void Init(Session* session, const InitializedCallback& callback) = 0;
-
- // Stops writing. Must be called on the network thread before this
- // object is destroyed.
- virtual void Close() = 0;
-
- // Returns true if the channel is connected.
- virtual bool is_connected() = 0;
-
- protected:
- VideoWriter() { }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(VideoWriter);
-};
-
-} // namespace protocol
-} // namespace remoting
-
-#endif // REMOTING_PROTOCOL_VIDEO_WRITER_H_
« no previous file with comments | « remoting/protocol/video_reader.cc ('k') | remoting/protocol/video_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698