OLD | NEW |
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 <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1213 } | 1213 } |
1214 | 1214 |
1215 bool BlinkPlatformImpl::databaseSetFileSize( | 1215 bool BlinkPlatformImpl::databaseSetFileSize( |
1216 const blink::WebString& vfs_file_name, long long size) { | 1216 const blink::WebString& vfs_file_name, long long size) { |
1217 return false; | 1217 return false; |
1218 } | 1218 } |
1219 | 1219 |
1220 blink::WebString BlinkPlatformImpl::signedPublicKeyAndChallengeString( | 1220 blink::WebString BlinkPlatformImpl::signedPublicKeyAndChallengeString( |
1221 unsigned key_size_index, | 1221 unsigned key_size_index, |
1222 const blink::WebString& challenge, | 1222 const blink::WebString& challenge, |
1223 const blink::WebURL& url) { | 1223 const blink::WebURL& url, |
| 1224 const blink::WebURL& top_origin) { |
1224 return blink::WebString(""); | 1225 return blink::WebString(""); |
1225 } | 1226 } |
1226 | 1227 |
1227 static size_t getMemoryUsageMB(bool bypass_cache) { | 1228 static size_t getMemoryUsageMB(bool bypass_cache) { |
1228 size_t current_mem_usage = 0; | 1229 size_t current_mem_usage = 0; |
1229 MemoryUsageCache* mem_usage_cache_singleton = MemoryUsageCache::GetInstance(); | 1230 MemoryUsageCache* mem_usage_cache_singleton = MemoryUsageCache::GetInstance(); |
1230 if (!bypass_cache && | 1231 if (!bypass_cache && |
1231 mem_usage_cache_singleton->IsCachedValueValid(¤t_mem_usage)) | 1232 mem_usage_cache_singleton->IsCachedValueValid(¤t_mem_usage)) |
1232 return current_mem_usage; | 1233 return current_mem_usage; |
1233 | 1234 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1306 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( | 1307 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( |
1307 static_cast<ui::DomKey>(dom_key))); | 1308 static_cast<ui::DomKey>(dom_key))); |
1308 } | 1309 } |
1309 | 1310 |
1310 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { | 1311 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { |
1311 return static_cast<int>( | 1312 return static_cast<int>( |
1312 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); | 1313 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); |
1313 } | 1314 } |
1314 | 1315 |
1315 } // namespace content | 1316 } // namespace content |
OLD | NEW |