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