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

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

Issue 145443005: Fixes for memory and threading issues in cast (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix compile Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/renderer/media/cast_session_delegate.cc » ('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 #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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 scoped_refptr<media::cast::CastEnvironment> cast_environment_; 65 scoped_refptr<media::cast::CastEnvironment> cast_environment_;
66 scoped_ptr<media::cast::CastSender> cast_sender_; 66 scoped_ptr<media::cast::CastSender> cast_sender_;
67 67
68 // Utilities threads owned by this class. They are used by CastSender for 68 // Utilities threads owned by this class. They are used by CastSender for
69 // encoding. 69 // encoding.
70 // TODO(hclam): See crbug.com/317006 for more details. 70 // TODO(hclam): See crbug.com/317006 for more details.
71 // This class shouldn't create and own threads. 71 // This class shouldn't create and own threads.
72 base::Thread audio_encode_thread_; 72 base::Thread audio_encode_thread_;
73 base::Thread video_encode_thread_; 73 base::Thread video_encode_thread_;
74 74
75 // Clock used by CastSender.
76 base::DefaultTickClock clock_;
77
78 // Configuration for audio and video. 75 // Configuration for audio and video.
79 media::cast::AudioSenderConfig audio_config_; 76 media::cast::AudioSenderConfig audio_config_;
80 media::cast::VideoSenderConfig video_config_; 77 media::cast::VideoSenderConfig video_config_;
81 bool audio_configured_; 78 bool audio_configured_;
82 bool video_configured_; 79 bool video_configured_;
83 std::vector<FrameInputAvailableCallback> frame_input_available_callbacks_; 80 std::vector<FrameInputAvailableCallback> frame_input_available_callbacks_;
84 SendPacketCallback send_packet_callback_; 81 SendPacketCallback send_packet_callback_;
85 82
86 // Proxy to the IO message loop. 83 // Proxy to the IO message loop.
87 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; 84 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_;
88 85
89 DISALLOW_COPY_AND_ASSIGN(CastSessionDelegate); 86 DISALLOW_COPY_AND_ASSIGN(CastSessionDelegate);
90 }; 87 };
91 88
92 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_ 89 #endif // CHROME_RENDERER_MEDIA_CAST_SESSION_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/media/cast_session_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698