| 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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 } | 555 } |
| 556 | 556 |
| 557 //------------------------------------------------------------------------------ | 557 //------------------------------------------------------------------------------ |
| 558 | 558 |
| 559 WebKit::WebString RendererWebKitClientImpl::signedPublicKeyAndChallengeString( | 559 WebKit::WebString RendererWebKitClientImpl::signedPublicKeyAndChallengeString( |
| 560 unsigned key_size_index, | 560 unsigned key_size_index, |
| 561 const WebKit::WebString& challenge, | 561 const WebKit::WebString& challenge, |
| 562 const WebKit::WebURL& url) { | 562 const WebKit::WebURL& url) { |
| 563 std::string signed_public_key; | 563 std::string signed_public_key; |
| 564 RenderThread::current()->Send(new ViewHostMsg_Keygen( | 564 RenderThread::current()->Send(new ViewHostMsg_Keygen( |
| 565 MSG_ROUTING_CONTROL, |
| 565 static_cast<uint32>(key_size_index), | 566 static_cast<uint32>(key_size_index), |
| 566 challenge.utf8(), | 567 challenge.utf8(), |
| 567 GURL(url), | 568 GURL(url), |
| 568 &signed_public_key)); | 569 &signed_public_key)); |
| 569 return WebString::fromUTF8(signed_public_key); | 570 return WebString::fromUTF8(signed_public_key); |
| 570 } | 571 } |
| 571 | 572 |
| 572 //------------------------------------------------------------------------------ | 573 //------------------------------------------------------------------------------ |
| 573 | 574 |
| 574 WebBlobRegistry* RendererWebKitClientImpl::blobRegistry() { | 575 WebBlobRegistry* RendererWebKitClientImpl::blobRegistry() { |
| 575 if (!blob_registry_.get()) | 576 if (!blob_registry_.get()) |
| 576 blob_registry_.reset(new WebBlobRegistryImpl(RenderThread::current())); | 577 blob_registry_.reset(new WebBlobRegistryImpl(RenderThread::current())); |
| 577 return blob_registry_.get(); | 578 return blob_registry_.get(); |
| 578 } | 579 } |
| OLD | NEW |