| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_USER_MEDIA_CLIENT_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "base/threading/non_thread_safe.h" | 17 #include "base/threading/non_thread_safe.h" |
| 18 #include "content/common/content_export.h" | 18 #include "content/common/content_export.h" |
| 19 #include "content/public/renderer/render_frame_observer.h" | 19 #include "content/public/renderer/render_frame_observer.h" |
| 20 #include "content/renderer/media/media_stream_dispatcher_eventhandler.h" | 20 #include "content/renderer/media/media_stream_dispatcher_eventhandler.h" |
| 21 #include "content/renderer/media/media_stream_source.h" | 21 #include "content/renderer/media/media_stream_source.h" |
| 22 #include "third_party/WebKit/public/platform/WebMediaStream.h" | 22 #include "third_party/WebKit/public/platform/WebMediaStream.h" |
| 23 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" | 23 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" |
| 24 #include "third_party/WebKit/public/platform/WebSourceInfo.h" | 24 #include "third_party/WebKit/public/platform/WebSourceInfo.h" |
| 25 #include "third_party/WebKit/public/platform/WebVector.h" | 25 #include "third_party/WebKit/public/platform/WebVector.h" |
| 26 #include "third_party/WebKit/public/web/WebMediaDeviceChangeObserver.h" | 26 #include "third_party/WebKit/public/web/WebMediaDeviceChangeObserver.h" |
| 27 #include "third_party/WebKit/public/web/WebMediaDevicesRequest.h" | 27 #include "third_party/WebKit/public/web/WebMediaDevicesRequest.h" |
| 28 #include "third_party/WebKit/public/web/WebUserMediaClient.h" | 28 #include "third_party/WebKit/public/web/WebUserMediaClient.h" |
| 29 #include "third_party/WebKit/public/web/WebUserMediaRequest.h" | 29 #include "third_party/WebKit/public/web/WebUserMediaRequest.h" |
| 30 #include "third_party/webrtc/api/mediastreaminterface.h" | |
| 31 | 30 |
| 32 namespace content { | 31 namespace content { |
| 33 class PeerConnectionDependencyFactory; | 32 class PeerConnectionDependencyFactory; |
| 34 class MediaStreamAudioSource; | 33 class MediaStreamAudioSource; |
| 35 class MediaStreamDispatcher; | 34 class MediaStreamDispatcher; |
| 36 class MediaStreamVideoSource; | 35 class MediaStreamVideoSource; |
| 37 class VideoCapturerDelegate; | 36 class VideoCapturerDelegate; |
| 38 | 37 |
| 39 // UserMediaClientImpl is a delegate for the Media Stream GetUserMedia API. | 38 // UserMediaClientImpl is a delegate for the Media Stream GetUserMedia API. |
| 40 // It ties together WebKit and MediaStreamManager | 39 // It ties together WebKit and MediaStreamManager |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 // Note: This member must be the last to ensure all outstanding weak pointers | 273 // Note: This member must be the last to ensure all outstanding weak pointers |
| 275 // are invalidated first. | 274 // are invalidated first. |
| 276 base::WeakPtrFactory<UserMediaClientImpl> weak_factory_; | 275 base::WeakPtrFactory<UserMediaClientImpl> weak_factory_; |
| 277 | 276 |
| 278 DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl); | 277 DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl); |
| 279 }; | 278 }; |
| 280 | 279 |
| 281 } // namespace content | 280 } // namespace content |
| 282 | 281 |
| 283 #endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ | 282 #endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ |
| OLD | NEW |