| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 int32_t OnResourceMessageReceived( | 73 int32_t OnResourceMessageReceived( |
| 74 const IPC::Message& msg, | 74 const IPC::Message& msg, |
| 75 ppapi::host::HostMessageContext* context) override; | 75 ppapi::host::HostMessageContext* context) override; |
| 76 | 76 |
| 77 // Message handlers: | 77 // Message handlers: |
| 78 int32_t OnHostMsgConfigure( | 78 int32_t OnHostMsgConfigure( |
| 79 ppapi::host::HostMessageContext* context, | 79 ppapi::host::HostMessageContext* context, |
| 80 const ppapi::MediaStreamVideoTrackShared::Attributes& attributes); | 80 const ppapi::MediaStreamVideoTrackShared::Attributes& attributes); |
| 81 | 81 |
| 82 void InitBlinkTrack(); | 82 void InitBlinkTrack(); |
| 83 void OnTrackStarted(MediaStreamSource* source, | |
| 84 MediaStreamRequestResult result, | |
| 85 const blink::WebString& result_name); | |
| 86 | 83 |
| 87 blink::WebMediaStreamTrack track_; | 84 blink::WebMediaStreamTrack track_; |
| 88 | 85 |
| 89 // Number of buffers. | 86 // Number of buffers. |
| 90 int32_t number_of_buffers_; | 87 int32_t number_of_buffers_; |
| 91 | 88 |
| 92 // Size of frames which are received from MediaStreamVideoSink. | 89 // Size of frames which are received from MediaStreamVideoSink. |
| 93 gfx::Size source_frame_size_; | 90 gfx::Size source_frame_size_; |
| 94 | 91 |
| 95 // Plugin specified frame size. | 92 // Plugin specified frame size. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 114 scoped_refptr<FrameDeliverer> frame_deliverer_; | 111 scoped_refptr<FrameDeliverer> frame_deliverer_; |
| 115 | 112 |
| 116 base::WeakPtrFactory<PepperMediaStreamVideoTrackHost> weak_factory_; | 113 base::WeakPtrFactory<PepperMediaStreamVideoTrackHost> weak_factory_; |
| 117 | 114 |
| 118 DISALLOW_COPY_AND_ASSIGN(PepperMediaStreamVideoTrackHost); | 115 DISALLOW_COPY_AND_ASSIGN(PepperMediaStreamVideoTrackHost); |
| 119 }; | 116 }; |
| 120 | 117 |
| 121 } // namespace content | 118 } // namespace content |
| 122 | 119 |
| 123 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ | 120 #endif // CONTENT_RENDERER_PEPPER_PEPPER_MEDIA_STREAM_VIDEO_TRACK_HOST_H_ |
| OLD | NEW |