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

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

Issue 10835025: Plumb render view ID to media observer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/pepper_plugin_delegate_impl.h" 5 #include "content/renderer/pepper/pepper_plugin_delegate_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <cstddef> 8 #include <cstddef>
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 uint32_t PepperPluginDelegateImpl::GetAudioHardwareOutputBufferSize() { 758 uint32_t PepperPluginDelegateImpl::GetAudioHardwareOutputBufferSize() {
759 return static_cast<uint32_t>(audio_hardware::GetOutputBufferSize()); 759 return static_cast<uint32_t>(audio_hardware::GetOutputBufferSize());
760 } 760 }
761 761
762 webkit::ppapi::PluginDelegate::PlatformAudioOutput* 762 webkit::ppapi::PluginDelegate::PlatformAudioOutput*
763 PepperPluginDelegateImpl::CreateAudioOutput( 763 PepperPluginDelegateImpl::CreateAudioOutput(
764 uint32_t sample_rate, 764 uint32_t sample_rate,
765 uint32_t sample_count, 765 uint32_t sample_count,
766 webkit::ppapi::PluginDelegate::PlatformAudioOutputClient* client) { 766 webkit::ppapi::PluginDelegate::PlatformAudioOutputClient* client) {
767 return PepperPlatformAudioOutputImpl::Create( 767 return PepperPlatformAudioOutputImpl::Create(
768 static_cast<int>(sample_rate), static_cast<int>(sample_count), client); 768 render_view_,
769 static_cast<int>(sample_rate),
770 static_cast<int>(sample_count),
771 client);
769 } 772 }
770 773
771 webkit::ppapi::PluginDelegate::PlatformAudioInput* 774 webkit::ppapi::PluginDelegate::PlatformAudioInput*
772 PepperPluginDelegateImpl::CreateAudioInput( 775 PepperPluginDelegateImpl::CreateAudioInput(
773 const std::string& device_id, 776 const std::string& device_id,
774 uint32_t sample_rate, 777 uint32_t sample_rate,
775 uint32_t sample_count, 778 uint32_t sample_count,
776 webkit::ppapi::PluginDelegate::PlatformAudioInputClient* client) { 779 webkit::ppapi::PluginDelegate::PlatformAudioInputClient* client) {
777 return PepperPlatformAudioInputImpl::Create( 780 return PepperPlatformAudioInputImpl::Create(
778 AsWeakPtr(), device_id, static_cast<int>(sample_rate), 781 AsWeakPtr(), device_id, static_cast<int>(sample_rate),
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
1750 else 1753 else
1751 return render_view_->mouse_lock_dispatcher(); 1754 return render_view_->mouse_lock_dispatcher();
1752 } 1755 }
1753 1756
1754 webkit_glue::ClipboardClient* 1757 webkit_glue::ClipboardClient*
1755 PepperPluginDelegateImpl::CreateClipboardClient() const { 1758 PepperPluginDelegateImpl::CreateClipboardClient() const {
1756 return new RendererClipboardClient; 1759 return new RendererClipboardClient;
1757 } 1760 }
1758 1761
1759 } // namespace content 1762 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_platform_audio_output_impl.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698