Upstream version 11.39.244.0
[platform/framework/web/crosswalk.git] / src / content / browser / renderer_host / media / audio_renderer_host.h
index 38317ef..cc85a6f 100644 (file)
@@ -38,6 +38,9 @@
 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_AUDIO_RENDERER_HOST_H_
 
 #include <map>
+#if defined(OS_TIZEN)
+#include <string>
+#endif
 
 #include "base/atomic_ref_count.h"
 #include "base/gtest_prod_util.h"
@@ -89,6 +92,15 @@ class CONTENT_EXPORT AudioRendererHost : public BrowserMessageFilter {
   // be called from any thread.
   bool HasActiveAudio();
 
+#if defined(OS_TIZEN)
+  // Sets an application ID and class properties, which are used to tag audio
+  // streams in pulseaudio/Murphy.
+  virtual void SetMediaStreamProperties(const std::string& app_id,
+                                        const std::string& app_class);
+  const std::string& app_id() const { return app_id_; }
+  const std::string& app_class() const { return app_class_; }
+#endif
+
  private:
   friend class AudioRendererHostTest;
   friend class BrowserThread;
@@ -173,6 +185,12 @@ class CONTENT_EXPORT AudioRendererHost : public BrowserMessageFilter {
   // The number of streams in the playing state.
   base::AtomicRefCount num_playing_streams_;
 
+#if defined(OS_TIZEN)
+  // Application ID and class for the Murphy resource set.
+  std::string app_id_;
+  std::string app_class_;
+#endif
+
   DISALLOW_COPY_AND_ASSIGN(AudioRendererHost);
 };