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/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
651 RenderThreadImpl::current()->Send(new ViewHostMsg_Keygen( | 651 RenderThreadImpl::current()->Send(new ViewHostMsg_Keygen( |
652 static_cast<uint32>(key_size_index), | 652 static_cast<uint32>(key_size_index), |
653 challenge.utf8(), | 653 challenge.utf8(), |
654 GURL(url), | 654 GURL(url), |
655 &signed_public_key)); | 655 &signed_public_key)); |
656 return WebString::fromUTF8(signed_public_key); | 656 return WebString::fromUTF8(signed_public_key); |
657 } | 657 } |
658 | 658 |
659 //------------------------------------------------------------------------------ | 659 //------------------------------------------------------------------------------ |
660 | 660 |
661 void RendererWebKitPlatformSupportImpl::screenColorProfile( | |
662 const WebKit::WebString& type, | |
663 WebVector<char>* to_profile) { | |
664 std::vector<char> profile; | |
665 gfx::NativeViewId view_id = 0; | |
666 std::string type_str(type.utf8()); | |
Noel Gordon
2012/06/21 16:58:33
nit: you could ditch this line ...
tpayne
2012/07/02 19:22:32
N/A
| |
667 RenderThreadImpl::current()->Send(new ViewHostMsg_GetMonitorColorProfile( | |
668 view_id, type_str, &profile)); | |
Noel Gordon
2012/06/21 16:58:33
... and here just write
view_id, std::strin
tpayne
2012/07/02 19:22:32
N/A
| |
669 *to_profile = profile; | |
670 } | |
671 | |
672 //------------------------------------------------------------------------------ | |
673 | |
661 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { | 674 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { |
662 // ChildThread::current can be NULL when running some tests. | 675 // ChildThread::current can be NULL when running some tests. |
663 if (!blob_registry_.get() && ChildThread::current()) { | 676 if (!blob_registry_.get() && ChildThread::current()) { |
664 blob_registry_.reset(new WebBlobRegistryImpl(ChildThread::current())); | 677 blob_registry_.reset(new WebBlobRegistryImpl(ChildThread::current())); |
665 } | 678 } |
666 return blob_registry_.get(); | 679 return blob_registry_.get(); |
667 } | 680 } |
668 | 681 |
669 //------------------------------------------------------------------------------ | 682 //------------------------------------------------------------------------------ |
670 | 683 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
730 bool enable) { | 743 bool enable) { |
731 bool was_enabled = g_sandbox_enabled; | 744 bool was_enabled = g_sandbox_enabled; |
732 g_sandbox_enabled = enable; | 745 g_sandbox_enabled = enable; |
733 return was_enabled; | 746 return was_enabled; |
734 } | 747 } |
735 | 748 |
736 GpuChannelHostFactory* | 749 GpuChannelHostFactory* |
737 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { | 750 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { |
738 return RenderThreadImpl::current(); | 751 return RenderThreadImpl::current(); |
739 } | 752 } |
OLD | NEW |