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_blink_platform_impl.h" | 5 #include "content/renderer/renderer_blink_platform_impl.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 } | 775 } |
776 | 776 |
777 //------------------------------------------------------------------------------ | 777 //------------------------------------------------------------------------------ |
778 | 778 |
779 blink::WebPublicSuffixList* RendererBlinkPlatformImpl::publicSuffixList() { | 779 blink::WebPublicSuffixList* RendererBlinkPlatformImpl::publicSuffixList() { |
780 return &public_suffix_list_; | 780 return &public_suffix_list_; |
781 } | 781 } |
782 | 782 |
783 //------------------------------------------------------------------------------ | 783 //------------------------------------------------------------------------------ |
784 | 784 |
785 blink::WebString RendererBlinkPlatformImpl::signedPublicKeyAndChallengeString( | |
786 unsigned key_size_index, | |
787 const blink::WebString& challenge, | |
788 const blink::WebURL& url, | |
789 const blink::WebURL& top_origin) { | |
790 std::string signed_public_key; | |
791 RenderThread::Get()->Send(new RenderProcessHostMsg_Keygen( | |
792 static_cast<uint32_t>(key_size_index), challenge.utf8(), GURL(url), | |
793 GURL(top_origin), &signed_public_key)); | |
794 return WebString::fromUTF8(signed_public_key); | |
795 } | |
796 | |
797 //------------------------------------------------------------------------------ | |
798 | |
799 blink::WebScrollbarBehavior* RendererBlinkPlatformImpl::scrollbarBehavior() { | 785 blink::WebScrollbarBehavior* RendererBlinkPlatformImpl::scrollbarBehavior() { |
800 return web_scrollbar_behavior_.get(); | 786 return web_scrollbar_behavior_.get(); |
801 } | 787 } |
802 | 788 |
803 //------------------------------------------------------------------------------ | 789 //------------------------------------------------------------------------------ |
804 | 790 |
805 WebBlobRegistry* RendererBlinkPlatformImpl::getBlobRegistry() { | 791 WebBlobRegistry* RendererBlinkPlatformImpl::getBlobRegistry() { |
806 // blob_registry_ can be NULL when running some tests. | 792 // blob_registry_ can be NULL when running some tests. |
807 return blob_registry_.get(); | 793 return blob_registry_.get(); |
808 } | 794 } |
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1299 return &trial_token_validator_; | 1285 return &trial_token_validator_; |
1300 } | 1286 } |
1301 | 1287 |
1302 void RendererBlinkPlatformImpl::workerContextCreated( | 1288 void RendererBlinkPlatformImpl::workerContextCreated( |
1303 const v8::Local<v8::Context>& worker) { | 1289 const v8::Local<v8::Context>& worker) { |
1304 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( | 1290 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( |
1305 worker); | 1291 worker); |
1306 } | 1292 } |
1307 | 1293 |
1308 } // namespace content | 1294 } // namespace content |
OLD | NEW |