Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(476)

Side by Side Diff: content/renderer/pepper/pepper_media_stream_video_track_host.h

Issue 391703002: Implement ConstraintNotSatisfiedError for getusermedia (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug id and reviewer Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 content::MediaStreamRequestResult result,
yzshen1 2014/07/25 17:48:49 content:: is not needed.
90 const blink::WebString& result_name = blink::WebString());
yzshen1 2014/07/25 17:48:49 Do you really need this default value? In general
jiajia.qin 2014/07/28 05:10:20 In the spec, it says if it is the ConstraintNotSat
yzshen1 2014/07/28 17:37:18 Could we pass an empty string in the cases that we
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698