OLD | NEW |
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_H_ | 5 #ifndef CHROME_RENDERER_MEDIA_CAST_SESSION_H_ |
6 #define CHROME_RENDERER_MEDIA_CAST_SESSION_H_ | 6 #define CHROME_RENDERER_MEDIA_CAST_SESSION_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 const ErrorCallback& error_callback); | 64 const ErrorCallback& error_callback); |
65 void StartVideo(const media::cast::VideoSenderConfig& config, | 65 void StartVideo(const media::cast::VideoSenderConfig& config, |
66 const VideoFrameInputAvailableCallback& callback, | 66 const VideoFrameInputAvailableCallback& callback, |
67 const ErrorCallback& error_callback); | 67 const ErrorCallback& error_callback); |
68 | 68 |
69 // This will create the Cast transport and connect to |remote_endpoint|. | 69 // This will create the Cast transport and connect to |remote_endpoint|. |
70 // |options| is a dictionary which contain optional configuration for the | 70 // |options| is a dictionary which contain optional configuration for the |
71 // udp transport. | 71 // udp transport. |
72 // Must be called before initialization of audio or video. | 72 // Must be called before initialization of audio or video. |
73 void StartUDP(const net::IPEndPoint& remote_endpoint, | 73 void StartUDP(const net::IPEndPoint& remote_endpoint, |
74 scoped_ptr<base::DictionaryValue> options); | 74 scoped_ptr<base::DictionaryValue> options, |
| 75 const ErrorCallback& error_callback); |
75 | 76 |
76 // Creates or destroys event subscriber for the audio or video stream. | 77 // Creates or destroys event subscriber for the audio or video stream. |
77 // |is_audio|: true if the event subscriber is for audio. Video otherwise. | 78 // |is_audio|: true if the event subscriber is for audio. Video otherwise. |
78 // |enable|: If true, creates an event subscriber. Otherwise destroys | 79 // |enable|: If true, creates an event subscriber. Otherwise destroys |
79 // existing subscriber and discards logs. | 80 // existing subscriber and discards logs. |
80 void ToggleLogging(bool is_audio, bool enable); | 81 void ToggleLogging(bool is_audio, bool enable); |
81 | 82 |
82 // Returns raw event logs in serialized format for either the audio or video | 83 // Returns raw event logs in serialized format for either the audio or video |
83 // stream since last call and returns result in |callback|. Also attaches | 84 // stream since last call and returns result in |callback|. Also attaches |
84 // |extra_data| to the log. | 85 // |extra_data| to the log. |
(...skipping 14 matching lines...) Expand all Loading... |
99 // because it is owned by this object. | 100 // because it is owned by this object. |
100 scoped_ptr<CastSessionDelegate> delegate_; | 101 scoped_ptr<CastSessionDelegate> delegate_; |
101 | 102 |
102 // Proxy to the IO message loop. | 103 // Proxy to the IO message loop. |
103 const scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; | 104 const scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; |
104 | 105 |
105 DISALLOW_COPY_AND_ASSIGN(CastSession); | 106 DISALLOW_COPY_AND_ASSIGN(CastSession); |
106 }; | 107 }; |
107 | 108 |
108 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_H_ | 109 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_H_ |
OLD | NEW |