| 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_SOURCE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_SOURCE_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_SOURCE_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_SOURCE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.h" |
| 13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 #include "content/common/media/media_stream_options.h" | 14 #include "content/common/media/media_stream_options.h" |
| 15 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" | 15 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" |
| 16 | 16 |
| 17 namespace blink { | |
| 18 class WebMediaStreamTrack; | |
| 19 } // namespace blink | |
| 20 | |
| 21 namespace content { | 17 namespace content { |
| 22 | 18 |
| 23 class CONTENT_EXPORT MediaStreamSource | 19 class CONTENT_EXPORT MediaStreamSource |
| 24 : NON_EXPORTED_BASE(public blink::WebMediaStreamSource::ExtraData) { | 20 : NON_EXPORTED_BASE(public blink::WebMediaStreamSource::ExtraData) { |
| 25 public: | 21 public: |
| 26 typedef base::Callback<void(const blink::WebMediaStreamSource& source)> | 22 typedef base::Callback<void(const blink::WebMediaStreamSource& source)> |
| 27 SourceStoppedCallback; | 23 SourceStoppedCallback; |
| 28 | 24 |
| 29 typedef base::Callback<void(MediaStreamSource* source, | 25 typedef base::Callback<void(MediaStreamSource* source, |
| 30 MediaStreamRequestResult result, | 26 MediaStreamRequestResult result, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // In debug builds, check that all methods are being called on the main | 68 // In debug builds, check that all methods are being called on the main |
| 73 // thread. | 69 // thread. |
| 74 base::ThreadChecker thread_checker_; | 70 base::ThreadChecker thread_checker_; |
| 75 | 71 |
| 76 DISALLOW_COPY_AND_ASSIGN(MediaStreamSource); | 72 DISALLOW_COPY_AND_ASSIGN(MediaStreamSource); |
| 77 }; | 73 }; |
| 78 | 74 |
| 79 } // namespace content | 75 } // namespace content |
| 80 | 76 |
| 81 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_SOURCE_H_ | 77 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_SOURCE_H_ |
| OLD | NEW |