OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_webkitclient_impl.h" | 5 #include "content/renderer/renderer_webkitclient_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/platform_file.h" | 10 #include "base/platform_file.h" |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 double sample_rate, | 549 double sample_rate, |
550 WebAudioDevice::RenderCallback* callback) { | 550 WebAudioDevice::RenderCallback* callback) { |
551 return new RendererWebAudioDeviceImpl(buffer_size, | 551 return new RendererWebAudioDeviceImpl(buffer_size, |
552 channels, | 552 channels, |
553 sample_rate, | 553 sample_rate, |
554 callback); | 554 callback); |
555 } | 555 } |
556 | 556 |
557 //------------------------------------------------------------------------------ | 557 //------------------------------------------------------------------------------ |
558 | 558 |
559 WebKit::WebString RendererWebKitClientImpl::signedPublicKeyAndChallengeString( | |
560 unsigned key_size_index, | |
561 const WebKit::WebString& challenge, | |
562 const WebKit::WebURL& url) { | |
563 std::string signed_public_key; | |
564 RenderThread::current()->Send(new ViewHostMsg_Keygen( | |
565 MSG_ROUTING_CONTROL, | |
566 static_cast<uint32>(key_size_index), | |
567 challenge.utf8(), | |
568 GURL(url), | |
569 &signed_public_key)); | |
570 return WebString::fromUTF8(signed_public_key); | |
571 } | |
572 | |
573 //------------------------------------------------------------------------------ | |
574 | |
575 WebBlobRegistry* RendererWebKitClientImpl::blobRegistry() { | 559 WebBlobRegistry* RendererWebKitClientImpl::blobRegistry() { |
576 if (!blob_registry_.get()) | 560 if (!blob_registry_.get()) |
577 blob_registry_.reset(new WebBlobRegistryImpl(RenderThread::current())); | 561 blob_registry_.reset(new WebBlobRegistryImpl(RenderThread::current())); |
578 return blob_registry_.get(); | 562 return blob_registry_.get(); |
579 } | 563 } |
OLD | NEW |