| 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_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "content/browser/renderer_host/media/media_stream_manager.h" | 15 #include "content/browser/renderer_host/media/media_stream_manager.h" |
| 16 #include "content/browser/renderer_host/media/media_stream_requester.h" | 16 #include "content/browser/renderer_host/media/media_stream_requester.h" |
| 17 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
| 18 #include "content/common/media/media_stream_options.h" | 18 #include "content/common/media/media_stream_options.h" |
| 19 #include "content/public/browser/browser_message_filter.h" | 19 #include "content/public/browser/browser_message_filter.h" |
| 20 #include "content/public/browser/resource_context.h" | 20 #include "content/public/browser/resource_context.h" |
| 21 #include "url/origin.h" | 21 #include "url/origin.h" |
| 22 | 22 |
| 23 namespace content { | 23 namespace content { |
| 24 | 24 |
| 25 class MediaStreamManager; | 25 class MediaStreamManager; |
| 26 class MediaStreamUIProxy; | 26 class MediaStreamUIProxy; |
| 27 class ResourceContext; | |
| 28 | 27 |
| 29 // MediaStreamDispatcherHost is a delegate for Media Stream API messages used by | 28 // MediaStreamDispatcherHost is a delegate for Media Stream API messages used by |
| 30 // MediaStreamImpl. There is one MediaStreamDispatcherHost per | 29 // MediaStreamImpl. There is one MediaStreamDispatcherHost per |
| 31 // RenderProcessHost, the former owned by the latter. | 30 // RenderProcessHost, the former owned by the latter. |
| 32 class CONTENT_EXPORT MediaStreamDispatcherHost : public BrowserMessageFilter, | 31 class CONTENT_EXPORT MediaStreamDispatcherHost : public BrowserMessageFilter, |
| 33 public MediaStreamRequester { | 32 public MediaStreamRequester { |
| 34 public: | 33 public: |
| 35 MediaStreamDispatcherHost(int render_process_id, | 34 MediaStreamDispatcherHost(int render_process_id, |
| 36 const std::string& salt, | 35 const std::string& salt, |
| 37 MediaStreamManager* media_stream_manager, | 36 MediaStreamManager* media_stream_manager, |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 bool use_fake_ui_; | 128 bool use_fake_ui_; |
| 130 | 129 |
| 131 base::WeakPtrFactory<MediaStreamDispatcherHost> weak_factory_; | 130 base::WeakPtrFactory<MediaStreamDispatcherHost> weak_factory_; |
| 132 | 131 |
| 133 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); | 132 DISALLOW_COPY_AND_ASSIGN(MediaStreamDispatcherHost); |
| 134 }; | 133 }; |
| 135 | 134 |
| 136 } // namespace content | 135 } // namespace content |
| 137 | 136 |
| 138 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ | 137 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MEDIA_STREAM_DISPATCHER_HOST_H_ |
| OLD | NEW |