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

Side by Side Diff: chrome/renderer/media/cast_session_delegate.h

Issue 551883004: Cast: Let the extension control if DSCP is on or off. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
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 #ifndef CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ 5 #ifndef CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_
6 #define CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ 6 #define CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 typedef base::Callback<void(scoped_ptr<base::BinaryValue>)> EventLogsCallback; 52 typedef base::Callback<void(scoped_ptr<base::BinaryValue>)> EventLogsCallback;
53 typedef base::Callback<void(scoped_ptr<base::DictionaryValue>)> StatsCallback; 53 typedef base::Callback<void(scoped_ptr<base::DictionaryValue>)> StatsCallback;
54 typedef base::Callback<void(const std::string&)> ErrorCallback; 54 typedef base::Callback<void(const std::string&)> ErrorCallback;
55 55
56 CastSessionDelegate(); 56 CastSessionDelegate();
57 virtual ~CastSessionDelegate(); 57 virtual ~CastSessionDelegate();
58 58
59 // This will start the session by configuring and creating the Cast transport 59 // This will start the session by configuring and creating the Cast transport
60 // and the Cast sender. 60 // and the Cast sender.
61 // Must be called before initialization of audio or video. 61 // Must be called before initialization of audio or video.
62 void StartUDP(const net::IPEndPoint& remote_endpoint); 62 void StartUDP(const net::IPEndPoint& remote_endpoint,
63 const std::string& options);
Alpha Left Google 2014/09/09 00:30:45 I suggest this be base::DictionaryValue which is a
hubbe 2014/09/09 20:10:01 Done.
63 64
64 // After calling StartAudio() or StartVideo() encoding of that media will 65 // After calling StartAudio() or StartVideo() encoding of that media will
65 // begin as soon as data is delivered to its sink, if the second method is 66 // begin as soon as data is delivered to its sink, if the second method is
66 // called the first media will be restarted. It is strongly recommended not to 67 // called the first media will be restarted. It is strongly recommended not to
67 // deliver any data between calling the two methods. 68 // deliver any data between calling the two methods.
68 // It's OK to call only one of the two methods. 69 // It's OK to call only one of the two methods.
69 // StartUDP must be called before these methods. 70 // StartUDP must be called before these methods.
70 void StartAudio(const media::cast::AudioSenderConfig& config, 71 void StartAudio(const media::cast::AudioSenderConfig& config,
71 const AudioFrameInputAvailableCallback& callback, 72 const AudioFrameInputAvailableCallback& callback,
72 const ErrorCallback& error_callback); 73 const ErrorCallback& error_callback);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 scoped_ptr<media::cast::RawEventSubscriberBundle> event_subscribers_; 111 scoped_ptr<media::cast::RawEventSubscriberBundle> event_subscribers_;
111 112
112 // Proxy to the IO message loop. 113 // Proxy to the IO message loop.
113 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; 114 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_;
114 base::WeakPtrFactory<CastSessionDelegate> weak_factory_; 115 base::WeakPtrFactory<CastSessionDelegate> weak_factory_;
115 116
116 DISALLOW_COPY_AND_ASSIGN(CastSessionDelegate); 117 DISALLOW_COPY_AND_ASSIGN(CastSessionDelegate);
117 }; 118 };
118 119
119 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ 120 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698