Chromium Code Reviews| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 314 // Returns the maximum amount of memory a decoded image should be allowed. | 314 // Returns the maximum amount of memory a decoded image should be allowed. |
| 315 // See comments on ImageDecoder::m_maxDecodedBytes. | 315 // See comments on ImageDecoder::m_maxDecodedBytes. |
| 316 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; } | 316 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; } |
| 317 | 317 |
| 318 // Process ------------------------------------------------------------- | 318 // Process ------------------------------------------------------------- |
| 319 | 319 |
| 320 // Returns a unique identifier for a process. This may not necessarily be | 320 // Returns a unique identifier for a process. This may not necessarily be |
| 321 // the process's process ID. | 321 // the process's process ID. |
| 322 virtual uint32_t getUniqueIdForProcess() { return 0; } | 322 virtual uint32_t getUniqueIdForProcess() { return 0; } |
| 323 | 323 |
| 324 // Render Thread ------------------------------------------------------- | |
| 325 | |
| 326 // Returns a unique client ID for the process of the current render thread | |
| 327 virtual uint32_t getClientId() { return 0; } | |
|
Fady Samuel
2016/11/22 23:41:18
How about just exposing a "generateFrameSinkId" wh
xlai (Olivia)
2016/11/22 23:51:55
I would rather keep an interface function as strai
kinuko
2016/11/23 10:33:30
(Putting aside the discussion if it's recommended
| |
| 328 // Generates a new routing ID. This method normally gets delegated to a | |
| 329 // MessageRouter. | |
| 330 virtual int generateRoutingId() { return 0; } | |
|
kinuko
2016/11/23 10:33:30
Is the 'routing ID' about IPC routing or render th
| |
| 331 | |
| 324 // Message Ports ------------------------------------------------------- | 332 // Message Ports ------------------------------------------------------- |
| 325 | 333 |
| 326 // Creates a Message Port Channel pair. This can be called on any thread. | 334 // Creates a Message Port Channel pair. This can be called on any thread. |
| 327 // The returned objects should only be used on the thread they were created | 335 // The returned objects should only be used on the thread they were created |
| 328 // on. | 336 // on. |
| 329 virtual void createMessageChannel(WebMessagePortChannel** channel1, | 337 virtual void createMessageChannel(WebMessagePortChannel** channel1, |
| 330 WebMessagePortChannel** channel2) { | 338 WebMessagePortChannel** channel2) { |
| 331 *channel1 = 0; | 339 *channel1 = 0; |
| 332 *channel2 = 0; | 340 *channel2 = 0; |
| 333 } | 341 } |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 675 protected: | 683 protected: |
| 676 Platform(); | 684 Platform(); |
| 677 virtual ~Platform() {} | 685 virtual ~Platform() {} |
| 678 | 686 |
| 679 WebThread* m_mainThread; | 687 WebThread* m_mainThread; |
| 680 }; | 688 }; |
| 681 | 689 |
| 682 } // namespace blink | 690 } // namespace blink |
| 683 | 691 |
| 684 #endif | 692 #endif |
| OLD | NEW |