| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_VIDEO_DESTINATION_HANDLER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_VIDEO_DESTINATION_HANDLER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_VIDEO_DESTINATION_HANDLER_H_ | 6 #define CONTENT_RENDERER_MEDIA_VIDEO_DESTINATION_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 // VideoDestinationHandler is a glue class between the webrtc MediaStream and | 69 // VideoDestinationHandler is a glue class between the webrtc MediaStream and |
| 70 // the effects pepper plugin host. | 70 // the effects pepper plugin host. |
| 71 class CONTENT_EXPORT VideoDestinationHandler { | 71 class CONTENT_EXPORT VideoDestinationHandler { |
| 72 public: | 72 public: |
| 73 // Instantiates and adds a new video track to the MediaStream specified by | 73 // Instantiates and adds a new video track to the MediaStream specified by |
| 74 // |url|. Returns a handler for delivering frames to the new video track as | 74 // |url|. Returns a handler for delivering frames to the new video track as |
| 75 // |frame_writer|. | 75 // |frame_writer|. |
| 76 // If |factory| is NULL the MediaStreamDependencyFactory owned by | 76 // If |factory| is NULL the MediaStreamDependencyFactory owned by |
| 77 // RenderThreadImpl::current() will be used. | 77 // RenderThreadImpl::current() will be used. |
| 78 // If |registry| is NULL the global WebKit::WebMediaStreamRegistry will be | 78 // If |registry| is NULL the global blink::WebMediaStreamRegistry will be |
| 79 // used to look up the media stream. | 79 // used to look up the media stream. |
| 80 // The caller of the function takes the ownership of |frame_writer|. | 80 // The caller of the function takes the ownership of |frame_writer|. |
| 81 // Returns true on success and false on failure. | 81 // Returns true on success and false on failure. |
| 82 static bool Open(MediaStreamDependencyFactory* factory, | 82 static bool Open(MediaStreamDependencyFactory* factory, |
| 83 MediaStreamRegistryInterface* registry, | 83 MediaStreamRegistryInterface* registry, |
| 84 const std::string& url, | 84 const std::string& url, |
| 85 FrameWriterInterface** frame_writer); | 85 FrameWriterInterface** frame_writer); |
| 86 | 86 |
| 87 private: | 87 private: |
| 88 DISALLOW_COPY_AND_ASSIGN(VideoDestinationHandler); | 88 DISALLOW_COPY_AND_ASSIGN(VideoDestinationHandler); |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 } // namespace content | 91 } // namespace content |
| 92 | 92 |
| 93 #endif // CONTENT_RENDERER_MEDIA_VIDEO_DESTINATION_HANDLER_H_ | 93 #endif // CONTENT_RENDERER_MEDIA_VIDEO_DESTINATION_HANDLER_H_ |
| 94 | 94 |
| OLD | NEW |