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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.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/WebMediaDevicesRequest.h" | 26 #include "third_party/WebKit/public/web/WebMediaDevicesRequest.h" |
27 #include "third_party/WebKit/public/web/WebUserMediaClient.h" | 27 #include "third_party/WebKit/public/web/WebUserMediaClient.h" |
28 #include "third_party/WebKit/public/web/WebUserMediaRequest.h" | 28 #include "third_party/WebKit/public/web/WebUserMediaRequest.h" |
29 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" | 29 #include "third_party/webrtc/api/mediastreaminterface.h" |
30 | 30 |
31 namespace content { | 31 namespace content { |
32 class PeerConnectionDependencyFactory; | 32 class PeerConnectionDependencyFactory; |
33 class MediaStreamDispatcher; | 33 class MediaStreamDispatcher; |
34 class MediaStreamVideoSource; | 34 class MediaStreamVideoSource; |
35 class VideoCapturerDelegate; | 35 class VideoCapturerDelegate; |
36 | 36 |
37 // UserMediaClientImpl is a delegate for the Media Stream GetUserMedia API. | 37 // UserMediaClientImpl is a delegate for the Media Stream GetUserMedia API. |
38 // It ties together WebKit and MediaStreamManager | 38 // It ties together WebKit and MediaStreamManager |
39 // (via MediaStreamDispatcher and MediaStreamDispatcherHost) | 39 // (via MediaStreamDispatcher and MediaStreamDispatcherHost) |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 // Note: This member must be the last to ensure all outstanding weak pointers | 254 // Note: This member must be the last to ensure all outstanding weak pointers |
255 // are invalidated first. | 255 // are invalidated first. |
256 base::WeakPtrFactory<UserMediaClientImpl> weak_factory_; | 256 base::WeakPtrFactory<UserMediaClientImpl> weak_factory_; |
257 | 257 |
258 DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl); | 258 DISALLOW_COPY_AND_ASSIGN(UserMediaClientImpl); |
259 }; | 259 }; |
260 | 260 |
261 } // namespace content | 261 } // namespace content |
262 | 262 |
263 #endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ | 263 #endif // CONTENT_RENDERER_MEDIA_USER_MEDIA_CLIENT_IMPL_H_ |
OLD | NEW |