| 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> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 namespace base { | 33 namespace base { |
| 34 class TaskRunner; | 34 class TaskRunner; |
| 35 } | 35 } |
| 36 | 36 |
| 37 namespace content { | 37 namespace content { |
| 38 class PeerConnectionDependencyFactory; | 38 class PeerConnectionDependencyFactory; |
| 39 class MediaStreamAudioSource; | 39 class MediaStreamAudioSource; |
| 40 class MediaStreamDispatcher; | 40 class MediaStreamDispatcher; |
| 41 class MediaStreamVideoSource; | 41 class MediaStreamVideoSource; |
| 42 struct VideoDeviceCaptureSourceSelectionResult; | 42 class VideoDeviceCaptureSourceSelectionResult; |
| 43 | 43 |
| 44 // UserMediaClientImpl is a delegate for the Media Stream GetUserMedia API. | 44 // UserMediaClientImpl is a delegate for the Media Stream GetUserMedia API. |
| 45 // It ties together WebKit and MediaStreamManager | 45 // It ties together WebKit and MediaStreamManager |
| 46 // (via MediaStreamDispatcher and MediaStreamDispatcherHost) | 46 // (via MediaStreamDispatcher and MediaStreamDispatcherHost) |
| 47 // in the browser process. It must be created, called and destroyed on the | 47 // in the browser process. It must be created, called and destroyed on the |
| 48 // render thread. | 48 // render thread. |
| 49 class CONTENT_EXPORT UserMediaClientImpl | 49 class CONTENT_EXPORT UserMediaClientImpl |
| 50 : public RenderFrameObserver, | 50 : public RenderFrameObserver, |
| 51 NON_EXPORTED_BASE(public blink::WebUserMediaClient), | 51 NON_EXPORTED_BASE(public blink::WebUserMediaClient), |
| 52 public MediaStreamDispatcherEventHandler, | 52 public MediaStreamDispatcherEventHandler, |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 // Note: This member must be the last to ensure all outstanding weak pointers | 354 // Note: This member must be the last to ensure all outstanding weak pointers |
| 355 // are invalidated first. | 355 // are invalidated first. |
| 356 base::WeakPtrFactory<UserMediaClientImpl> weak_factory_; | 356 base::WeakPtrFactory<UserMediaClientImpl> weak_factory_; |
| 357 | 357 |
| 358 DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl); | 358 DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl); |
| 359 }; | 359 }; |
| 360 | 360 |
| 361 } // namespace content | 361 } // namespace content |
| 362 | 362 |
| 363 #endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ | 363 #endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ |
| OLD | NEW |