| OLD | NEW |
| 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_MEDIA_STREAM_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_H_ |
| 7 | 7 |
| 8 #include <string> | |
| 9 #include <vector> | 8 #include <vector> |
| 10 | 9 |
| 11 #include "base/callback.h" | |
| 12 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 13 #include "base/threading/thread_checker.h" | 11 #include "base/threading/thread_checker.h" |
| 14 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 15 #include "third_party/WebKit/public/platform/WebMediaStream.h" | 13 #include "third_party/WebKit/public/platform/WebMediaStream.h" |
| 16 | 14 |
| 17 namespace content { | 15 namespace content { |
| 18 | 16 |
| 19 // MediaStreamObserver can be used to get notifications of when a track is | 17 // MediaStreamObserver can be used to get notifications of when a track is |
| 20 // added or removed from a MediaStream. | 18 // added or removed from a MediaStream. |
| 21 class MediaStreamObserver { | 19 class MediaStreamObserver { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 private: | 54 private: |
| 57 base::ThreadChecker thread_checker_; | 55 base::ThreadChecker thread_checker_; |
| 58 std::vector<MediaStreamObserver*> observers_; | 56 std::vector<MediaStreamObserver*> observers_; |
| 59 | 57 |
| 60 DISALLOW_COPY_AND_ASSIGN(MediaStream); | 58 DISALLOW_COPY_AND_ASSIGN(MediaStream); |
| 61 }; | 59 }; |
| 62 | 60 |
| 63 } // namespace content | 61 } // namespace content |
| 64 | 62 |
| 65 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_H_ | 63 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_H_ |
| OLD | NEW |