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