| 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 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1204 } | 1204 } |
| 1205 | 1205 |
| 1206 bool BlinkPlatformImpl::databaseSetFileSize( | 1206 bool BlinkPlatformImpl::databaseSetFileSize( |
| 1207 const blink::WebString& vfs_file_name, long long size) { | 1207 const blink::WebString& vfs_file_name, long long size) { |
| 1208 return false; | 1208 return false; |
| 1209 } | 1209 } |
| 1210 | 1210 |
| 1211 blink::WebString BlinkPlatformImpl::signedPublicKeyAndChallengeString( | 1211 blink::WebString BlinkPlatformImpl::signedPublicKeyAndChallengeString( |
| 1212 unsigned key_size_index, | 1212 unsigned key_size_index, |
| 1213 const blink::WebString& challenge, | 1213 const blink::WebString& challenge, |
| 1214 const blink::WebURL& url) { | 1214 const blink::WebURL& url, |
| 1215 const blink::WebURL& parent_url) { |
| 1215 return blink::WebString(""); | 1216 return blink::WebString(""); |
| 1216 } | 1217 } |
| 1217 | 1218 |
| 1218 static size_t getMemoryUsageMB(bool bypass_cache) { | 1219 static size_t getMemoryUsageMB(bool bypass_cache) { |
| 1219 size_t current_mem_usage = 0; | 1220 size_t current_mem_usage = 0; |
| 1220 MemoryUsageCache* mem_usage_cache_singleton = MemoryUsageCache::GetInstance(); | 1221 MemoryUsageCache* mem_usage_cache_singleton = MemoryUsageCache::GetInstance(); |
| 1221 if (!bypass_cache && | 1222 if (!bypass_cache && |
| 1222 mem_usage_cache_singleton->IsCachedValueValid(¤t_mem_usage)) | 1223 mem_usage_cache_singleton->IsCachedValueValid(¤t_mem_usage)) |
| 1223 return current_mem_usage; | 1224 return current_mem_usage; |
| 1224 | 1225 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1313 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( | 1314 return WebString::fromUTF8(ui::KeycodeConverter::DomKeyToKeyString( |
| 1314 static_cast<ui::DomKey>(dom_key))); | 1315 static_cast<ui::DomKey>(dom_key))); |
| 1315 } | 1316 } |
| 1316 | 1317 |
| 1317 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { | 1318 int BlinkPlatformImpl::domKeyEnumFromString(const WebString& key_string) { |
| 1318 return static_cast<int>( | 1319 return static_cast<int>( |
| 1319 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); | 1320 ui::KeycodeConverter::KeyStringToDomKey(key_string.utf8())); |
| 1320 } | 1321 } |
| 1321 | 1322 |
| 1322 } // namespace content | 1323 } // namespace content |
| OLD | NEW |