| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "content/public/renderer/media_stream_video_sink.h" | 10 #include "content/public/renderer/media_stream_video_sink.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 virtual int32_t OnResourceMessageReceived( | 78 virtual int32_t OnResourceMessageReceived( |
| 79 const IPC::Message& msg, | 79 const IPC::Message& msg, |
| 80 ppapi::host::HostMessageContext* context) OVERRIDE; | 80 ppapi::host::HostMessageContext* context) OVERRIDE; |
| 81 | 81 |
| 82 // Message handlers: | 82 // Message handlers: |
| 83 int32_t OnHostMsgConfigure( | 83 int32_t OnHostMsgConfigure( |
| 84 ppapi::host::HostMessageContext* context, | 84 ppapi::host::HostMessageContext* context, |
| 85 const ppapi::MediaStreamVideoTrackShared::Attributes& attributes); | 85 const ppapi::MediaStreamVideoTrackShared::Attributes& attributes); |
| 86 | 86 |
| 87 void InitBlinkTrack(); | 87 void InitBlinkTrack(); |
| 88 void OnTrackStarted(MediaStreamSource* source, bool success); | 88 void OnTrackStarted(MediaStreamSource* source, |
| 89 MediaStreamRequestResult result, |
| 90 const blink::WebString& result_name); |
| 89 | 91 |
| 90 blink::WebMediaStreamTrack track_; | 92 blink::WebMediaStreamTrack track_; |
| 91 | 93 |
| 92 // True if it has been added to |blink::WebMediaStreamTrack| as a sink. | 94 // True if it has been added to |blink::WebMediaStreamTrack| as a sink. |
| 93 bool connected_; | 95 bool connected_; |
| 94 | 96 |
| 95 // Number of buffers. | 97 // Number of buffers. |
| 96 int32_t number_of_buffers_; | 98 int32_t number_of_buffers_; |
| 97 | 99 |
| 98 // Size of frames which are received from MediaStreamVideoSink. | 100 // Size of frames which are received from MediaStreamVideoSink. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 121 scoped_refptr<FrameDeliverer> frame_deliverer_; | 123 scoped_refptr<FrameDeliverer> frame_deliverer_; |
| 122 | 124 |
| 123 base::WeakPtrFactory<PepperMediaStreamVideoTrackHost> weak_factory_; | 125 base::WeakPtrFactory<PepperMediaStreamVideoTrackHost> weak_factory_; |
| 124 | 126 |
| 125 DISALLOW_COPY_AND_ASSIGN(PepperMediaStreamVideoTrackHost); | 127 DISALLOW_COPY_AND_ASSIGN(PepperMediaStreamVideoTrackHost); |
| 126 }; | 128 }; |
| 127 | 129 |
| 128 } // namespace content | 130 } // namespace content |
| 129 | 131 |
| 130 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ | 132 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ |
| OLD | NEW |