#ifndef CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_MESSAGE_HANDLER_H_
#define CONTENT_BROWSER_MEDIA_WEBRTC_INTERNALS_MESSAGE_HANDLER_H_
#include "base/memory/ref_counted.h"
#include "content/browser/media/webrtc_internals_ui_observer.h"
#include "content/public/browser/web_ui_message_handler.h"
namespace base {
class ListValue;
}
namespace content {
class WebRTCInternalsMessageHandler : public WebUIMessageHandler,
public WebRTCInternalsUIObserver{
public:
WebRTCInternalsMessageHandler();
virtual ~WebRTCInternalsMessageHandler();
virtual void RegisterMessages() OVERRIDE;
virtual void OnUpdate(const std::string& command,
const base::Value* args) OVERRIDE;
private:
void OnGetAllStats(const base::ListValue* list);
void OnSetAecRecordingEnabled(bool enable, const base::ListValue* list);
void OnDOMLoadDone(const base::ListValue* list);
DISALLOW_COPY_AND_ASSIGN(WebRTCInternalsMessageHandler);
};
}
#endif