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

Unified Diff: media/cast/net/cast_transport_sender_impl.h

Issue 566243005: Cast: Allow extension to control wifi options on windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: posix fixed again Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: media/cast/net/cast_transport_sender_impl.h
diff --git a/media/cast/net/cast_transport_sender_impl.h b/media/cast/net/cast_transport_sender_impl.h
index 1eb8bca1caedb5d07e6e30e429f9f4d49650c5b9..6f319e65b0857071f60787dc49d0f7cfd34835c6 100644
--- a/media/cast/net/cast_transport_sender_impl.h
+++ b/media/cast/net/cast_transport_sender_impl.h
@@ -26,6 +26,7 @@
#include "base/callback.h"
#include "base/gtest_prod_util.h"
+#include "base/memory/lifetime_interface.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
@@ -56,11 +57,14 @@ class CastTransportSenderImpl : public CastTransportSender {
// |raw_events_callback| is a null callback.
// |options| contains optional settings for the transport, possible
// keys are:
- // "DSCP" (value doesn't matter) - turns DSCP on
+ // "DSCP" (value ignored) - turns DSCP on
// "pacer_target_burst_size": int - specifies how many packets to send
// per 10 ms ideally.
// "pacer_max_burst_size": int - specifies how many pakcets to send
// per 10 ms, max
+ // "disable_wifi_scan" (value ignored) - disable wifi scans while streaming
+ // "media_streaming_mode" (value ignored) - turn media streaming mode on
+ // Note, these options may be ignored on some platforms.
CastTransportSenderImpl(
net::NetLog* net_log,
base::TickClock* clock,
@@ -165,6 +169,8 @@ class CastTransportSenderImpl : public CastTransportSender {
// audio packet.
int64 last_byte_acked_for_audio_;
+ scoped_ptr<base::LifetimeInterface> wifi_options_autoreset_;
+
base::WeakPtrFactory<CastTransportSenderImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(CastTransportSenderImpl);

Powered by Google App Engine
This is Rietveld 408576698