| 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 // directly, taking care to unlock it when you are ready to let it become | 287 // directly, taking care to unlock it when you are ready to let it become |
| 288 // discardable. | 288 // discardable. |
| 289 virtual WebDiscardableMemory* allocateAndLockDiscardableMemory(size_t bytes)
{ return nullptr; } | 289 virtual WebDiscardableMemory* allocateAndLockDiscardableMemory(size_t bytes)
{ return nullptr; } |
| 290 | 290 |
| 291 static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1); | 291 static const size_t noDecodedImageByteLimit = static_cast<size_t>(-1); |
| 292 | 292 |
| 293 // Returns the maximum amount of memory a decoded image should be allowed. | 293 // Returns the maximum amount of memory a decoded image should be allowed. |
| 294 // See comments on ImageDecoder::m_maxDecodedBytes. | 294 // See comments on ImageDecoder::m_maxDecodedBytes. |
| 295 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; } | 295 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; } |
| 296 | 296 |
| 297 // Process ------------------------------------------------------------- |
| 298 |
| 299 // Returns a unique identifier for a process. This may not necessarily be |
| 300 // the process's process ID. |
| 301 virtual uint32_t getUniqueIdForProcess() { return 0; } |
| 302 |
| 297 | 303 |
| 298 // Message Ports ------------------------------------------------------- | 304 // Message Ports ------------------------------------------------------- |
| 299 | 305 |
| 300 // Creates a Message Port Channel pair. This can be called on any thread. | 306 // Creates a Message Port Channel pair. This can be called on any thread. |
| 301 // The returned objects should only be used on the thread they were created
on. | 307 // The returned objects should only be used on the thread they were created
on. |
| 302 virtual void createMessageChannel(WebMessagePortChannel** channel1, WebMessa
gePortChannel** channel2) { *channel1 = 0; *channel2 = 0; } | 308 virtual void createMessageChannel(WebMessagePortChannel** channel1, WebMessa
gePortChannel** channel2) { *channel1 = 0; *channel2 = 0; } |
| 303 | 309 |
| 304 | 310 |
| 305 // Network ------------------------------------------------------------- | 311 // Network ------------------------------------------------------------- |
| 306 | 312 |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 protected: | 718 protected: |
| 713 BLINK_PLATFORM_EXPORT Platform(); | 719 BLINK_PLATFORM_EXPORT Platform(); |
| 714 virtual ~Platform() { } | 720 virtual ~Platform() { } |
| 715 | 721 |
| 716 WebThread* m_mainThread; | 722 WebThread* m_mainThread; |
| 717 }; | 723 }; |
| 718 | 724 |
| 719 } // namespace blink | 725 } // namespace blink |
| 720 | 726 |
| 721 #endif | 727 #endif |
| OLD | NEW |