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

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

Issue 938903003: Cast: Javascript bindings for cast receiver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cast_receiver_session
Patch Set: comments addressed Created 5 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
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_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
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
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_
OLDNEW
« no previous file with comments | « chrome/renderer/media/cast_receiver_session_delegate.cc ('k') | chrome/renderer/media/cast_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698