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: 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
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/common/render_process_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 long long BlinkPlatformImpl::databaseGetSpaceAvailableForOrigin( 779 long long BlinkPlatformImpl::databaseGetSpaceAvailableForOrigin(
784 const blink::WebSecurityOrigin& origin) { 780 const blink::WebSecurityOrigin& origin) {
785 return 0; 781 return 0;
786 } 782 }
787 783
788 bool BlinkPlatformImpl::databaseSetFileSize( 784 bool BlinkPlatformImpl::databaseSetFileSize(
789 const blink::WebString& vfs_file_name, long long size) { 785 const blink::WebString& vfs_file_name, long long size) {
790 return false; 786 return false;
791 } 787 }
792 788
793 blink::WebString BlinkPlatformImpl::signedPublicKeyAndChallengeString(
794 unsigned key_size_index,
795 const blink::WebString& challenge,
796 const blink::WebURL& url,
797 const blink::WebURL& top_origin) {
798 return blink::WebString("");
799 }
800
801 size_t BlinkPlatformImpl::actualMemoryUsageMB() { 789 size_t BlinkPlatformImpl::actualMemoryUsageMB() {
802 return GetMemoryUsageKB() >> 10; 790 return GetMemoryUsageKB() >> 10;
803 } 791 }
804 792
805 size_t BlinkPlatformImpl::numberOfProcessors() { 793 size_t BlinkPlatformImpl::numberOfProcessors() {
806 return static_cast<size_t>(base::SysInfo::NumberOfProcessors()); 794 return static_cast<size_t>(base::SysInfo::NumberOfProcessors());
807 } 795 }
808 796
809 size_t BlinkPlatformImpl::maxDecodedImageBytes() { 797 size_t BlinkPlatformImpl::maxDecodedImageBytes() {
810 #if defined(OS_ANDROID) 798 #if defined(OS_ANDROID)
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( 839 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString(
852 static_cast<ui::DomKey>(dom_key))); 840 static_cast<ui::DomKey>(dom_key)));
853 } 841 }
854 842
855 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { 843 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) {
856 return static_cast<int>( 844 return static_cast<int>(
857 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); 845 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8()));
858 } 846 }
859 847
860 } // namespace content 848 } // namespace content
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | content/common/render_process_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698