| OLD | NEW |
| 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/renderer_webkitplatformsupport_impl.h" | 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 layout = media::CHANNEL_LAYOUT_7_0; | 611 layout = media::CHANNEL_LAYOUT_7_0; |
| 612 break; | 612 break; |
| 613 case 8: | 613 case 8: |
| 614 layout = media::CHANNEL_LAYOUT_7_1; | 614 layout = media::CHANNEL_LAYOUT_7_1; |
| 615 break; | 615 break; |
| 616 default: | 616 default: |
| 617 layout = media::CHANNEL_LAYOUT_STEREO; | 617 layout = media::CHANNEL_LAYOUT_STEREO; |
| 618 } | 618 } |
| 619 | 619 |
| 620 media::AudioParameters params( | 620 media::AudioParameters params( |
| 621 media::AudioParameters::AUDIO_PCM_LOW_LATENCY, layout, | 621 media::AudioParameters::AUDIO_PCM_LOW_LATENCY, |
| 622 layout, input_channels, |
| 622 static_cast<int>(sample_rate), 16, buffer_size); | 623 static_cast<int>(sample_rate), 16, buffer_size); |
| 623 | 624 |
| 624 return new RendererWebAudioDeviceImpl(params, input_channels, callback); | 625 return new RendererWebAudioDeviceImpl(params, callback); |
| 625 } | 626 } |
| 626 | 627 |
| 627 //------------------------------------------------------------------------------ | 628 //------------------------------------------------------------------------------ |
| 628 | 629 |
| 629 WebKit::WebString | 630 WebKit::WebString |
| 630 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString( | 631 RendererWebKitPlatformSupportImpl::signedPublicKeyAndChallengeString( |
| 631 unsigned key_size_index, | 632 unsigned key_size_index, |
| 632 const WebKit::WebString& challenge, | 633 const WebKit::WebString& challenge, |
| 633 const WebKit::WebURL& url) { | 634 const WebKit::WebURL& url) { |
| 634 std::string signed_public_key; | 635 std::string signed_public_key; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 //------------------------------------------------------------------------------ | 773 //------------------------------------------------------------------------------ |
| 773 | 774 |
| 774 bool RendererWebKitPlatformSupportImpl::processMemorySizesInBytes( | 775 bool RendererWebKitPlatformSupportImpl::processMemorySizesInBytes( |
| 775 size_t* private_bytes, size_t* shared_bytes) { | 776 size_t* private_bytes, size_t* shared_bytes) { |
| 776 content::RenderThread::Get()->Send( | 777 content::RenderThread::Get()->Send( |
| 777 new ViewHostMsg_GetProcessMemorySizes(private_bytes, shared_bytes)); | 778 new ViewHostMsg_GetProcessMemorySizes(private_bytes, shared_bytes)); |
| 778 return true; | 779 return true; |
| 779 } | 780 } |
| 780 | 781 |
| 781 } // namespace content | 782 } // namespace content |
| OLD | NEW |