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

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

Issue 2536993002: Remove support for the keygen tag (Closed)
Patch Set: Rebased 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 case WebLocalizedString::DownloadButtonLabel: 223 case WebLocalizedString::DownloadButtonLabel:
224 return IDS_DOWNLOAD_BUTTON_LABEL; 224 return IDS_DOWNLOAD_BUTTON_LABEL;
225 case WebLocalizedString::FileButtonChooseFileLabel: 225 case WebLocalizedString::FileButtonChooseFileLabel:
226 return IDS_FORM_FILE_BUTTON_LABEL; 226 return IDS_FORM_FILE_BUTTON_LABEL;
227 case WebLocalizedString::FileButtonChooseMultipleFilesLabel: 227 case WebLocalizedString::FileButtonChooseMultipleFilesLabel:
228 return IDS_FORM_MULTIPLE_FILES_BUTTON_LABEL; 228 return IDS_FORM_MULTIPLE_FILES_BUTTON_LABEL;
229 case WebLocalizedString::FileButtonNoFileSelectedLabel: 229 case WebLocalizedString::FileButtonNoFileSelectedLabel:
230 return IDS_FORM_FILE_NO_FILE_LABEL; 230 return IDS_FORM_FILE_NO_FILE_LABEL;
231 case WebLocalizedString::InputElementAltText: 231 case WebLocalizedString::InputElementAltText:
232 return IDS_FORM_INPUT_ALT; 232 return IDS_FORM_INPUT_ALT;
233 case WebLocalizedString::KeygenMenuHighGradeKeySize:
234 return IDS_KEYGEN_HIGH_GRADE_KEY;
235 case WebLocalizedString::KeygenMenuMediumGradeKeySize:
236 return IDS_KEYGEN_MED_GRADE_KEY;
237 case WebLocalizedString::MissingPluginText: 233 case WebLocalizedString::MissingPluginText:
238 return IDS_PLUGIN_INITIALIZATION_ERROR; 234 return IDS_PLUGIN_INITIALIZATION_ERROR;
239 case WebLocalizedString::MultipleFileUploadText: 235 case WebLocalizedString::MultipleFileUploadText:
240 return IDS_FORM_FILE_MULTIPLE_UPLOAD; 236 return IDS_FORM_FILE_MULTIPLE_UPLOAD;
241 case WebLocalizedString::OtherColorLabel: 237 case WebLocalizedString::OtherColorLabel:
242 return IDS_FORM_OTHER_COLOR_LABEL; 238 return IDS_FORM_OTHER_COLOR_LABEL;
243 case WebLocalizedString::OtherDateLabel: 239 case WebLocalizedString::OtherDateLabel:
244 return IDS_FORM_OTHER_DATE_LABEL; 240 return IDS_FORM_OTHER_DATE_LABEL;
245 case WebLocalizedString::OtherMonthLabel: 241 case WebLocalizedString::OtherMonthLabel:
246 return IDS_FORM_OTHER_MONTH_LABEL; 242 return IDS_FORM_OTHER_MONTH_LABEL;
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 long long BlinkPlatformImpl::databaseGetSpaceAvailableForOrigin( 802 long long BlinkPlatformImpl::databaseGetSpaceAvailableForOrigin(
807 const blink::WebSecurityOrigin& origin) { 803 const blink::WebSecurityOrigin& origin) {
808 return 0; 804 return 0;
809 } 805 }
810 806
811 bool BlinkPlatformImpl::databaseSetFileSize( 807 bool BlinkPlatformImpl::databaseSetFileSize(
812 const blink::WebString& vfs_file_name, long long size) { 808 const blink::WebString& vfs_file_name, long long size) {
813 return false; 809 return false;
814 } 810 }
815 811
816 blink::WebString BlinkPlatformImpl::signedPublicKeyAndChallengeString(
817 unsigned key_size_index,
818 const blink::WebString& challenge,
819 const blink::WebURL& url,
820 const blink::WebURL& top_origin) {
821 return blink::WebString("");
822 }
823
824 size_t BlinkPlatformImpl::actualMemoryUsageMB() { 812 size_t BlinkPlatformImpl::actualMemoryUsageMB() {
825 return GetMemoryUsageKB() >> 10; 813 return GetMemoryUsageKB() >> 10;
826 } 814 }
827 815
828 size_t BlinkPlatformImpl::numberOfProcessors() { 816 size_t BlinkPlatformImpl::numberOfProcessors() {
829 return static_cast<size_t>(base::SysInfo::NumberOfProcessors()); 817 return static_cast<size_t>(base::SysInfo::NumberOfProcessors());
830 } 818 }
831 819
832 size_t BlinkPlatformImpl::maxDecodedImageBytes() { 820 size_t BlinkPlatformImpl::maxDecodedImageBytes() {
833 #if defined(OS_ANDROID) 821 #if defined(OS_ANDROID)
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
874 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( 862 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString(
875 static_cast<ui::DomKey>(dom_key))); 863 static_cast<ui::DomKey>(dom_key)));
876 } 864 }
877 865
878 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { 866 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) {
879 return static_cast<int>( 867 return static_cast<int>(
880 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); 868 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8()));
881 } 869 }
882 870
883 } // namespace content 871 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698