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

Unified Diff: remoting/client/audio_decode_scheduler.h

Issue 2384063004: Move audio decoding to protocol layer (Closed)
Patch Set: Created 4 years, 2 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
Index: remoting/client/audio_decode_scheduler.h
diff --git a/remoting/client/audio_decode_scheduler.h b/remoting/client/audio_decode_scheduler.h
deleted file mode 100644
index af9fa34d8abd502a5847e77315c7032f3c5c5806..0000000000000000000000000000000000000000
--- a/remoting/client/audio_decode_scheduler.h
+++ /dev/null
@@ -1,54 +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.
-
-#ifndef REMOTING_CLIENT_AUDIO_DECODE_SCHEDULER_H_
-#define REMOTING_CLIENT_AUDIO_DECODE_SCHEDULER_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
-#include "remoting/protocol/audio_stub.h"
-
-namespace base {
-class SingleThreadTaskRunner;
-} // namespace base
-
-namespace remoting {
-
-namespace protocol {
-class SessionConfig;
-} // namespace protocol
-
-class AudioConsumer;
-class AudioDecoder;
-class AudioPacket;
-
-class AudioDecodeScheduler : public protocol::AudioStub {
- public:
- AudioDecodeScheduler(
- scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> audio_decode_task_runner,
- base::WeakPtr<AudioConsumer> audio_consumer);
- ~AudioDecodeScheduler() override;
-
- // Initializes decoder with the information from the protocol config.
- void Initialize(const protocol::SessionConfig& config);
-
- // AudioStub implementation.
- void ProcessAudioPacket(std::unique_ptr<AudioPacket> packet,
- const base::Closure& done) override;
-
- private:
- class Core;
-
- scoped_refptr<Core> core_;
-
- DISALLOW_COPY_AND_ASSIGN(AudioDecodeScheduler);
-};
-
-} // namespace remoting
-
-#endif // REMOTING_CLIENT_AUDIO_DECODE_SCHEDULER_H_

Powered by Google App Engine
This is Rietveld 408576698