Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: chrome/renderer/media/cast_session.cc

Issue 184853003: Cast: Add GetStats() extensions API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: static cast to int Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/renderer/media/cast_session.h ('k') | chrome/renderer/media/cast_session_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/media/cast_session.h" 5 #include "chrome/renderer/media/cast_session.h"
6 6
7 #include "base/message_loop/message_loop_proxy.h" 7 #include "base/message_loop/message_loop_proxy.h"
8 #include "chrome/renderer/media/cast_session_delegate.h" 8 #include "chrome/renderer/media/cast_session_delegate.h"
9 #include "content/public/renderer/render_thread.h" 9 #include "content/public/renderer/render_thread.h"
10 #include "media/base/bind_to_current_loop.h" 10 #include "media/base/bind_to_current_loop.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 void CastSession::GetEventLogsAndReset( 76 void CastSession::GetEventLogsAndReset(
77 bool is_audio, const EventLogsCallback& callback) { 77 bool is_audio, const EventLogsCallback& callback) {
78 io_message_loop_proxy_->PostTask( 78 io_message_loop_proxy_->PostTask(
79 FROM_HERE, 79 FROM_HERE,
80 base::Bind(&CastSessionDelegate::GetEventLogsAndReset, 80 base::Bind(&CastSessionDelegate::GetEventLogsAndReset,
81 base::Unretained(delegate_.get()), 81 base::Unretained(delegate_.get()),
82 is_audio, 82 is_audio,
83 media::BindToCurrentLoop(callback))); 83 media::BindToCurrentLoop(callback)));
84 } 84 }
85
86 void CastSession::GetStatsAndReset(bool is_audio,
87 const StatsCallback& callback) {
88 io_message_loop_proxy_->PostTask(
89 FROM_HERE,
90 base::Bind(&CastSessionDelegate::GetStatsAndReset,
91 base::Unretained(delegate_.get()),
92 is_audio,
93 media::BindToCurrentLoop(callback)));
94 }
OLDNEW
« no previous file with comments | « chrome/renderer/media/cast_session.h ('k') | chrome/renderer/media/cast_session_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698