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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1100 | 1100 |
1101 //------------------------------------------------------------------------------ | 1101 //------------------------------------------------------------------------------ |
1102 | 1102 |
1103 blink::WebCompositorSupport* RendererBlinkPlatformImpl::compositorSupport() { | 1103 blink::WebCompositorSupport* RendererBlinkPlatformImpl::compositorSupport() { |
1104 return &compositor_support_; | 1104 return &compositor_support_; |
1105 } | 1105 } |
1106 | 1106 |
1107 //------------------------------------------------------------------------------ | 1107 //------------------------------------------------------------------------------ |
1108 | 1108 |
1109 blink::WebString RendererBlinkPlatformImpl::convertIDNToUnicode( | 1109 blink::WebString RendererBlinkPlatformImpl::convertIDNToUnicode( |
1110 const blink::WebString& host, | 1110 const blink::WebString& host) { |
1111 const blink::WebString& languages) { | 1111 return url_formatter::IDNToUnicode(host.utf8()); |
1112 return url_formatter::IDNToUnicode(host.utf8(), languages.utf8()); | |
1113 } | 1112 } |
1114 | 1113 |
1115 //------------------------------------------------------------------------------ | 1114 //------------------------------------------------------------------------------ |
1116 | 1115 |
1117 void RendererBlinkPlatformImpl::recordRappor(const char* metric, | 1116 void RendererBlinkPlatformImpl::recordRappor(const char* metric, |
1118 const blink::WebString& sample) { | 1117 const blink::WebString& sample) { |
1119 GetContentClient()->renderer()->RecordRappor(metric, sample.utf8()); | 1118 GetContentClient()->renderer()->RecordRappor(metric, sample.utf8()); |
1120 } | 1119 } |
1121 | 1120 |
1122 void RendererBlinkPlatformImpl::recordRapporURL(const char* metric, | 1121 void RendererBlinkPlatformImpl::recordRapporURL(const char* metric, |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1306 } | 1305 } |
1307 | 1306 |
1308 //------------------------------------------------------------------------------ | 1307 //------------------------------------------------------------------------------ |
1309 | 1308 |
1310 blink::WebTrialTokenValidator* | 1309 blink::WebTrialTokenValidator* |
1311 RendererBlinkPlatformImpl::trialTokenValidator() { | 1310 RendererBlinkPlatformImpl::trialTokenValidator() { |
1312 return &trial_token_validator_; | 1311 return &trial_token_validator_; |
1313 } | 1312 } |
1314 | 1313 |
1315 } // namespace content | 1314 } // namespace content |
OLD | NEW |