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

Side by Side Diff: content/renderer/media/webrtc/track_observer.h

Issue 1615433002: Roll WebRTC 11523:11548, Libjingle 11522:11545 (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rolling to webrtc@11548 instead to pull in a fix Created 4 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_RENDERER_MEDIA_WEBRTC_TRACK_OBSERVER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_TRACK_OBSERVER_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_TRACK_OBSERVER_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_TRACK_OBSERVER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" 13 #include "third_party/webrtc/api/mediastreaminterface.h"
14 14
15 namespace content { 15 namespace content {
16 16
17 class CONTENT_EXPORT TrackObserver { 17 class CONTENT_EXPORT TrackObserver {
18 public: 18 public:
19 typedef base::Callback<void(webrtc::MediaStreamTrackInterface::TrackState)> 19 typedef base::Callback<void(webrtc::MediaStreamTrackInterface::TrackState)>
20 OnChangedCallback; 20 OnChangedCallback;
21 21
22 TrackObserver(const scoped_refptr<base::SingleThreadTaskRunner>& main_thread, 22 TrackObserver(const scoped_refptr<base::SingleThreadTaskRunner>& main_thread,
23 const scoped_refptr<webrtc::MediaStreamTrackInterface>& track); 23 const scoped_refptr<webrtc::MediaStreamTrackInterface>& track);
24 ~TrackObserver(); 24 ~TrackObserver();
25 25
26 void SetCallback(const OnChangedCallback& callback); 26 void SetCallback(const OnChangedCallback& callback);
27 27
28 const scoped_refptr<webrtc::MediaStreamTrackInterface>& track() const; 28 const scoped_refptr<webrtc::MediaStreamTrackInterface>& track() const;
29 29
30 private: 30 private:
31 class TrackObserverImpl; 31 class TrackObserverImpl;
32 const scoped_refptr<TrackObserverImpl> observer_; 32 const scoped_refptr<TrackObserverImpl> observer_;
33 DISALLOW_COPY_AND_ASSIGN(TrackObserver); 33 DISALLOW_COPY_AND_ASSIGN(TrackObserver);
34 }; 34 };
35 35
36 } // namespace content 36 } // namespace content
37 37
38 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_TRACK_OBSERVER_H_ 38 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_TRACK_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698