| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |