Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: content/child/blink_platform_impl.cc

Issue 2536993002: Remove support for the keygen tag (Closed)
Patch Set: Review feedback Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/child/blink_platform_impl.h" 5 #include "content/child/blink_platform_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 case WebLocalizedString::DownloadButtonLabel: 207 case WebLocalizedString::DownloadButtonLabel:
208 return IDS_DOWNLOAD_BUTTON_LABEL; 208 return IDS_DOWNLOAD_BUTTON_LABEL;
209 case WebLocalizedString::FileButtonChooseFileLabel: 209 case WebLocalizedString::FileButtonChooseFileLabel:
210 return IDS_FORM_FILE_BUTTON_LABEL; 210 return IDS_FORM_FILE_BUTTON_LABEL;
211 case WebLocalizedString::FileButtonChooseMultipleFilesLabel: 211 case WebLocalizedString::FileButtonChooseMultipleFilesLabel:
212 return IDS_FORM_MULTIPLE_FILES_BUTTON_LABEL; 212 return IDS_FORM_MULTIPLE_FILES_BUTTON_LABEL;
213 case WebLocalizedString::FileButtonNoFileSelectedLabel: 213 case WebLocalizedString::FileButtonNoFileSelectedLabel:
214 return IDS_FORM_FILE_NO_FILE_LABEL; 214 return IDS_FORM_FILE_NO_FILE_LABEL;
215 case WebLocalizedString::InputElementAltText: 215 case WebLocalizedString::InputElementAltText:
216 return IDS_FORM_INPUT_ALT; 216 return IDS_FORM_INPUT_ALT;
217 case WebLocalizedString::KeygenMenuHighGradeKeySize:
218 return IDS_KEYGEN_HIGH_GRADE_KEY;
219 case WebLocalizedString::KeygenMenuMediumGradeKeySize:
220 return IDS_KEYGEN_MED_GRADE_KEY;
221 case WebLocalizedString::MissingPluginText: 217 case WebLocalizedString::MissingPluginText:
222 return IDS_PLUGIN_INITIALIZATION_ERROR; 218 return IDS_PLUGIN_INITIALIZATION_ERROR;
223 case WebLocalizedString::MultipleFileUploadText: 219 case WebLocalizedString::MultipleFileUploadText:
224 return IDS_FORM_FILE_MULTIPLE_UPLOAD; 220 return IDS_FORM_FILE_MULTIPLE_UPLOAD;
225 case WebLocalizedString::OtherColorLabel: 221 case WebLocalizedString::OtherColorLabel:
226 return IDS_FORM_OTHER_COLOR_LABEL; 222 return IDS_FORM_OTHER_COLOR_LABEL;
227 case WebLocalizedString::OtherDateLabel: 223 case WebLocalizedString::OtherDateLabel:
228 return IDS_FORM_OTHER_DATE_LABEL; 224 return IDS_FORM_OTHER_DATE_LABEL;
229 case WebLocalizedString::OtherMonthLabel: 225 case WebLocalizedString::OtherMonthLabel:
230 return IDS_FORM_OTHER_MONTH_LABEL; 226 return IDS_FORM_OTHER_MONTH_LABEL;
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 long long BlinkPlatformImpl::databaseGetSpaceAvailableForOrigin( 782 long long BlinkPlatformImpl::databaseGetSpaceAvailableForOrigin(
787 const blink::WebSecurityOrigin& origin) { 783 const blink::WebSecurityOrigin& origin) {
788 return 0; 784 return 0;
789 } 785 }
790 786
791 bool BlinkPlatformImpl::databaseSetFileSize( 787 bool BlinkPlatformImpl::databaseSetFileSize(
792 const blink::WebString& vfs_file_name, long long size) { 788 const blink::WebString& vfs_file_name, long long size) {
793 return false; 789 return false;
794 } 790 }
795 791
796 blink::WebString BlinkPlatformImpl::signedPublicKeyAndChallengeString(
797 unsigned key_size_index,
798 const blink::WebString& challenge,
799 const blink::WebURL& url,
800 const blink::WebURL& top_origin) {
801 return blink::WebString("");
802 }
803
804 size_t BlinkPlatformImpl::actualMemoryUsageMB() { 792 size_t BlinkPlatformImpl::actualMemoryUsageMB() {
805 return GetMemoryUsageKB() >> 10; 793 return GetMemoryUsageKB() >> 10;
806 } 794 }
807 795
808 size_t BlinkPlatformImpl::numberOfProcessors() { 796 size_t BlinkPlatformImpl::numberOfProcessors() {
809 return static_cast<size_t>(base::SysInfo::NumberOfProcessors()); 797 return static_cast<size_t>(base::SysInfo::NumberOfProcessors());
810 } 798 }
811 799
812 size_t BlinkPlatformImpl::maxDecodedImageBytes() { 800 size_t BlinkPlatformImpl::maxDecodedImageBytes() {
813 #if defined(OS_ANDROID) 801 #if defined(OS_ANDROID)
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( 842 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString(
855 static_cast<ui::DomKey>(dom_key))); 843 static_cast<ui::DomKey>(dom_key)));
856 } 844 }
857 845
858 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { 846 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) {
859 return static_cast<int>( 847 return static_cast<int>(
860 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); 848 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8()));
861 } 849 }
862 850
863 } // namespace content 851 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698