| Index: chrome/renderer/media/cast_session.h
|
| diff --git a/chrome/renderer/media/cast_session.h b/chrome/renderer/media/cast_session.h
|
| index 237ea2fa696d4915ad2fd5ef0431068f6b471d0c..ae7d244d1b8ed571677efba4359617e9f8ad9e47 100644
|
| --- a/chrome/renderer/media/cast_session.h
|
| +++ b/chrome/renderer/media/cast_session.h
|
| @@ -14,6 +14,7 @@
|
| #include "net/base/ip_endpoint.h"
|
|
|
| namespace base {
|
| +class DictionaryValue;
|
| class MessageLoopProxy;
|
| } // namespace base
|
|
|
| @@ -42,6 +43,7 @@ class CastSession : public base::RefCounted<CastSession> {
|
| FrameInputAvailableCallback;
|
| typedef base::Callback<void(const std::vector<char>&)> SendPacketCallback;
|
| typedef base::Callback<void(scoped_ptr<std::string>)> EventLogsCallback;
|
| + typedef base::Callback<void(scoped_ptr<base::DictionaryValue>)> StatsCallback;
|
|
|
| CastSession();
|
|
|
| @@ -67,6 +69,10 @@ class CastSession : public base::RefCounted<CastSession> {
|
| // stream since last call and returns result in |callback|.
|
| void GetEventLogsAndReset(bool is_audio, const EventLogsCallback& callback);
|
|
|
| + // Returns stats in a DictionaryValue format for either the audio or video
|
| + // stream since last call and returns result in |callback|.
|
| + void GetStatsAndReset(bool is_audio, const StatsCallback& callback);
|
| +
|
| private:
|
| friend class base::RefCounted<CastSession>;
|
| virtual ~CastSession();
|
|
|