This is the preliminary introduction for the code for the chrome.copresence
API which enables the exchange short messages with nearby devices.
This is the audio handling code of the copresence core component. We'll be
open sourcing this code in phases, this is the first part. This CL includes
the code for the directive handler for copresence, and all related classes.
Including blundell@ for the OWNERs review to add this component.
[email protected], [email protected], [email protected], [email protected], [email protected]
BUG=365493
Review URL: https://codereview.chromium.org/419073002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287900 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/components/copresence.gypi b/components/copresence.gypi
index 98b2dc1..baac59b2 100644
--- a/components/copresence.gypi
+++ b/components/copresence.gypi
@@ -9,6 +9,9 @@
'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
+ '../content/content.gyp:content_common',
+ '../media/media.gyp:media',
+ '../media/media.gyp:shared_memory_support',
'../net/net.gyp:net',
'copresence_proto',
],
@@ -17,17 +20,41 @@
],
'sources': [
'copresence/copresence_client.cc',
+ 'copresence/copresence_constants.cc',
+ 'copresence/handlers/audio/audio_directive_handler.cc',
+ 'copresence/handlers/audio/audio_directive_handler.h',
+ 'copresence/handlers/audio/audio_directive_list.cc',
+ 'copresence/handlers/audio/audio_directive_list.h',
+ 'copresence/handlers/directive_handler.cc',
+ 'copresence/handlers/directive_handler.h',
+ 'copresence/mediums/audio/audio_player.cc',
+ 'copresence/mediums/audio/audio_player.h',
+ 'copresence/mediums/audio/audio_recorder.cc',
+ 'copresence/mediums/audio/audio_recorder.h',
'copresence/public/copresence_client_delegate.h',
'copresence/public/copresence_client.h',
+ 'copresence/public/copresence_constants.h',
'copresence/public/whispernet_client.h',
- 'copresence/rpc/rpc_handler.cc',
- 'copresence/rpc/rpc_handler.h',
+ 'copresence/rpc/rpc_handler.cc'
+ 'copresence/rpc/rpc_handler.h'
+ 'copresence/timed_map.h',
],
'export_dependent_settings': [
'copresence_proto',
],
},
{
+ 'target_name': 'copresence_test_support',
+ 'type': 'static_library',
+ 'include_dirs': [
+ '..',
+ ],
+ 'sources': [
+ 'copresence/test/audio_test_support.cc',
+ 'copresence/test/audio_test_support.h',
+ ],
+ },
+ {
# Protobuf compiler / generate rule for copresence.
# GN version: //components/copresence/proto
# Note: These protos are auto-generated from the protos of the