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

Side by Side Diff: content/renderer/pepper_plugin_delegate_impl.cc

Issue 8036005: Add a flag in StopCapture to allow event handler to choose event notification. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: add missing file Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "content/renderer/pepper_plugin_delegate_impl.h" 5 #include "content/renderer/pepper_plugin_delegate_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 manager->RemoveDevice(1, handler_proxy_.get()); 431 manager->RemoveDevice(1, handler_proxy_.get());
432 } 432 }
433 433
434 virtual void StartCapture( 434 virtual void StartCapture(
435 EventHandler* handler, 435 EventHandler* handler,
436 const VideoCaptureCapability& capability) OVERRIDE { 436 const VideoCaptureCapability& capability) OVERRIDE {
437 DCHECK(handler == handler_proxy_->proxied()); 437 DCHECK(handler == handler_proxy_->proxied());
438 video_capture_->StartCapture(handler_proxy_.get(), capability); 438 video_capture_->StartCapture(handler_proxy_.get(), capability);
439 } 439 }
440 440
441 virtual void StopCapture(EventHandler* handler) OVERRIDE { 441 virtual void StopCapture(EventHandler* handler,
442 bool need_notification) OVERRIDE {
442 DCHECK(handler == handler_proxy_->proxied()); 443 DCHECK(handler == handler_proxy_->proxied());
443 video_capture_->StopCapture(handler_proxy_.get()); 444 video_capture_->StopCapture(handler_proxy_.get(), need_notification);
444 } 445 }
445 446
446 virtual void FeedBuffer(scoped_refptr<VideoFrameBuffer> buffer) OVERRIDE { 447 virtual void FeedBuffer(scoped_refptr<VideoFrameBuffer> buffer) OVERRIDE {
447 video_capture_->FeedBuffer(buffer); 448 video_capture_->FeedBuffer(buffer);
448 } 449 }
449 450
450 virtual bool CaptureStarted() OVERRIDE { 451 virtual bool CaptureStarted() OVERRIDE {
451 return handler_proxy_->state().started; 452 return handler_proxy_->state().started;
452 } 453 }
453 454
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1614 1615
1615 int PepperPluginDelegateImpl::GetRoutingId() const { 1616 int PepperPluginDelegateImpl::GetRoutingId() const {
1616 return render_view_->routing_id(); 1617 return render_view_->routing_id();
1617 } 1618 }
1618 1619
1619 void PepperPluginDelegateImpl::PublishInitialPolicy( 1620 void PepperPluginDelegateImpl::PublishInitialPolicy(
1620 scoped_refptr<webkit::ppapi::PluginInstance> instance, 1621 scoped_refptr<webkit::ppapi::PluginInstance> instance,
1621 const std::string& policy) { 1622 const std::string& policy) {
1622 instance->HandlePolicyUpdate(policy); 1623 instance->HandlePolicyUpdate(policy);
1623 } 1624 }
OLDNEW
« no previous file with comments | « content/renderer/media/video_capture_module_impl.cc ('k') | media/video/capture/video_capture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698