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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 // link coloring. | 283 // link coloring. |
284 virtual unsigned long long visitedLinkHash(const char* canonicalURL, | 284 virtual unsigned long long visitedLinkHash(const char* canonicalURL, |
285 size_t length) { | 285 size_t length) { |
286 return 0; | 286 return 0; |
287 } | 287 } |
288 | 288 |
289 // Returns whether the given link hash is in the user's history. The | 289 // Returns whether the given link hash is in the user's history. The |
290 // hash must have been generated by calling VisitedLinkHash(). | 290 // hash must have been generated by calling VisitedLinkHash(). |
291 virtual bool isLinkVisited(unsigned long long linkHash) { return false; } | 291 virtual bool isLinkVisited(unsigned long long linkHash) { return false; } |
292 | 292 |
293 // Keygen -------------------------------------------------------------- | |
294 | |
295 // Handle the <keygen> tag for generating client certificates | |
296 // Returns a base64 encoded signed copy of a public key from a newly | |
297 // generated key pair and the supplied challenge string. keySizeindex | |
298 // specifies the strength of the key. | |
299 virtual WebString signedPublicKeyAndChallengeString( | |
300 unsigned keySizeIndex, | |
301 const WebString& challenge, | |
302 const WebURL& url, | |
303 const WebURL& topOrigin) { | |
304 return WebString(); | |
305 } | |
306 | |
307 // Same as above, but always returns actual value, without any caches. | 293 // Same as above, but always returns actual value, without any caches. |
308 virtual size_t actualMemoryUsageMB() { return 0; } | 294 virtual size_t actualMemoryUsageMB() { return 0; } |
309 | 295 |
310 // Return the number of of processors of the current machine. | 296 // Return the number of of processors of the current machine. |
311 virtual size_t numberOfProcessors() { return 0; } | 297 virtual size_t numberOfProcessors() { return 0; } |
312 | 298 |
313 static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1); | 299 static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1); |
314 | 300 |
315 // Returns the maximum amount of memory a decoded image should be allowed. | 301 // Returns the maximum amount of memory a decoded image should be allowed. |
316 // See comments on ImageDecoder::m_maxDecodedBytes. | 302 // See comments on ImageDecoder::m_maxDecodedBytes. |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 protected: | 665 protected: |
680 Platform(); | 666 Platform(); |
681 virtual ~Platform() {} | 667 virtual ~Platform() {} |
682 | 668 |
683 WebThread* m_mainThread; | 669 WebThread* m_mainThread; |
684 }; | 670 }; |
685 | 671 |
686 } // namespace blink | 672 } // namespace blink |
687 | 673 |
688 #endif | 674 #endif |
OLD | NEW |