diff options
author | kxing@chromium.org <kxing@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-07 15:31:12 +0000 |
---|---|---|
committer | kxing@chromium.org <kxing@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-07 15:31:12 +0000 |
commit | 068101738aa82931f7e89a29c276f395719c4e9f (patch) | |
tree | ad00bbda489d5737bad6bf9b9a9959580ad9d22d /remoting | |
parent | e9ad1c39baa8c8a5d7d052d3eb352f25cb8fde10 (diff) | |
download | chromium_src-068101738aa82931f7e89a29c276f395719c4e9f.zip chromium_src-068101738aa82931f7e89a29c276f395719c4e9f.tar.gz chromium_src-068101738aa82931f7e89a29c276f395719c4e9f.tar.bz2 |
Created an AudioStub for Chromoting audio.
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/10533014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141009 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/protocol/audio_stub.h | 34 | ||||
-rw-r--r-- | remoting/remoting.gyp | 1 |
2 files changed, 35 insertions, 0 deletions
diff --git a/remoting/protocol/audio_stub.h b/remoting/protocol/audio_stub.h new file mode 100644 index 0000000..d32a674 --- /dev/null +++ b/remoting/protocol/audio_stub.h @@ -0,0 +1,34 @@ +// 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_PROTOCOL_AUDIO_STUB_H_ +#define REMOTING_PROTOCOL_AUDIO_STUB_H_ + +#include "base/callback_forward.h" +#include "base/memory/scoped_ptr.h" + +namespace remoting { + +class AudioPacket; + +namespace protocol { + +class AudioStub { + public: + virtual ~AudioStub() { } + + virtual void ProcessAudioPacket(scoped_ptr<AudioPacket> audio_packet, + const base::Closure& done) = 0; + + protected: + AudioStub() { } + + private: + DISALLOW_COPY_AND_ASSIGN(AudioStub); +}; + +} // namespace protocol +} // namespace remoting + +#endif // REMOTING_PROTOCOL_AUDIO_STUB_H_ diff --git a/remoting/remoting.gyp b/remoting/remoting.gyp index 3e14702..0db3c18 100644 --- a/remoting/remoting.gyp +++ b/remoting/remoting.gyp @@ -1459,6 +1459,7 @@ 'remoting_jingle_glue', ], 'sources': [ + 'protocol/audio_stub.h', 'protocol/auth_util.cc', 'protocol/auth_util.h', 'protocol/authentication_method.cc', |