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

Unified Diff: remoting/protocol/video_reader.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/protobuf_video_writer.cc ('k') | remoting/protocol/video_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/video_reader.h
diff --git a/remoting/protocol/video_reader.h b/remoting/protocol/video_reader.h
deleted file mode 100644
index 63582cf73813401fe7ef415a49c812c42c89801f..0000000000000000000000000000000000000000
--- a/remoting/protocol/video_reader.h
+++ /dev/null
@@ -1,49 +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.
-
-// VideoReader is a generic interface used by ConnectionToHost to read
-// video stream. ProtobufVideoReader implements this interface for
-// protobuf video stream.
-
-#ifndef REMOTING_PROTOCOL_VIDEO_READER_H_
-#define REMOTING_PROTOCOL_VIDEO_READER_H_
-
-#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
-#include "remoting/protocol/video_stub.h"
-
-namespace remoting {
-namespace protocol {
-
-class Session;
-class SessionConfig;
-
-class VideoReader {
- public:
- // The callback is called when initialization is finished. The
- // parameter is set to true on success.
- typedef base::Callback<void(bool)> InitializedCallback;
-
- virtual ~VideoReader();
-
- static scoped_ptr<VideoReader> Create(const SessionConfig& config);
-
- // Initializies the reader. Doesn't take ownership of either |connection|
- // or |video_stub|.
- virtual void Init(Session* session,
- VideoStub* video_stub,
- const InitializedCallback& callback) = 0;
- virtual bool is_connected() = 0;
-
- protected:
- VideoReader() { }
-
- private:
- DISALLOW_COPY_AND_ASSIGN(VideoReader);
-};
-
-} // namespace protocol
-} // namespace remoting
-
-#endif // REMOTING_PROTOCOL_VIDEO_READER_H_
« no previous file with comments | « remoting/protocol/protobuf_video_writer.cc ('k') | remoting/protocol/video_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698