| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 // link coloring. | 279 // link coloring. |
| 280 virtual unsigned long long visitedLinkHash(const char* canonicalURL, | 280 virtual unsigned long long visitedLinkHash(const char* canonicalURL, |
| 281 size_t length) { | 281 size_t length) { |
| 282 return 0; | 282 return 0; |
| 283 } | 283 } |
| 284 | 284 |
| 285 // Returns whether the given link hash is in the user's history. The | 285 // Returns whether the given link hash is in the user's history. The |
| 286 // hash must have been generated by calling VisitedLinkHash(). | 286 // hash must have been generated by calling VisitedLinkHash(). |
| 287 virtual bool isLinkVisited(unsigned long long linkHash) { return false; } | 287 virtual bool isLinkVisited(unsigned long long linkHash) { return false; } |
| 288 | 288 |
| 289 // Keygen -------------------------------------------------------------- | |
| 290 | |
| 291 // Handle the <keygen> tag for generating client certificates | |
| 292 // Returns a base64 encoded signed copy of a public key from a newly | |
| 293 // generated key pair and the supplied challenge string. keySizeindex | |
| 294 // specifies the strength of the key. | |
| 295 virtual WebString signedPublicKeyAndChallengeString( | |
| 296 unsigned keySizeIndex, | |
| 297 const WebString& challenge, | |
| 298 const WebURL& url, | |
| 299 const WebURL& topOrigin) { | |
| 300 return WebString(); | |
| 301 } | |
| 302 | |
| 303 // Same as above, but always returns actual value, without any caches. | 289 // Same as above, but always returns actual value, without any caches. |
| 304 virtual size_t actualMemoryUsageMB() { return 0; } | 290 virtual size_t actualMemoryUsageMB() { return 0; } |
| 305 | 291 |
| 306 // Return the number of of processors of the current machine. | 292 // Return the number of of processors of the current machine. |
| 307 virtual size_t numberOfProcessors() { return 0; } | 293 virtual size_t numberOfProcessors() { return 0; } |
| 308 | 294 |
| 309 static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1); | 295 static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1); |
| 310 | 296 |
| 311 // Returns the maximum amount of memory a decoded image should be allowed. | 297 // Returns the maximum amount of memory a decoded image should be allowed. |
| 312 // See comments on ImageDecoder::m_maxDecodedBytes. | 298 // See comments on ImageDecoder::m_maxDecodedBytes. |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 protected: | 661 protected: |
| 676 Platform(); | 662 Platform(); |
| 677 virtual ~Platform() {} | 663 virtual ~Platform() {} |
| 678 | 664 |
| 679 WebThread* m_mainThread; | 665 WebThread* m_mainThread; |
| 680 }; | 666 }; |
| 681 | 667 |
| 682 } // namespace blink | 668 } // namespace blink |
| 683 | 669 |
| 684 #endif | 670 #endif |
| OLD | NEW |