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

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

Issue 569233002: Refactoring the order of the weak_ptr_factory in chrome/renderer folder (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_RTP_STREAM_H_ 5 #ifndef CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_
6 #define CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ 6 #define CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // track is a video track. 152 // track is a video track.
153 bool IsAudio() const; 153 bool IsAudio() const;
154 154
155 void DidEncounterError(const std::string& message); 155 void DidEncounterError(const std::string& message);
156 156
157 blink::WebMediaStreamTrack track_; 157 blink::WebMediaStreamTrack track_;
158 const scoped_refptr<CastSession> cast_session_; 158 const scoped_refptr<CastSession> cast_session_;
159 scoped_ptr<CastAudioSink> audio_sink_; 159 scoped_ptr<CastAudioSink> audio_sink_;
160 scoped_ptr<CastVideoSink> video_sink_; 160 scoped_ptr<CastVideoSink> video_sink_;
161 CastRtpParams params_; 161 CastRtpParams params_;
162 base::WeakPtrFactory<CastRtpStream> weak_factory_;
163 base::Closure stop_callback_; 162 base::Closure stop_callback_;
164 ErrorCallback error_callback_; 163 ErrorCallback error_callback_;
165 164
165 base::WeakPtrFactory<CastRtpStream> weak_factory_;
166
166 DISALLOW_COPY_AND_ASSIGN(CastRtpStream); 167 DISALLOW_COPY_AND_ASSIGN(CastRtpStream);
167 }; 168 };
168 169
169 #endif // CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_ 170 #endif // CHROME_RENDERER_MEDIA_CAST_RTP_STREAM_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/cast_streaming_native_handler.h ('k') | chrome/renderer/printing/print_web_view_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698