| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #include "WebPlatformEventType.h" | 48 #include "WebPlatformEventType.h" |
| 49 #include "WebSize.h" | 49 #include "WebSize.h" |
| 50 #include "WebSpeechSynthesizer.h" | 50 #include "WebSpeechSynthesizer.h" |
| 51 #include "WebStorageQuotaCallbacks.h" | 51 #include "WebStorageQuotaCallbacks.h" |
| 52 #include "WebStorageQuotaType.h" | 52 #include "WebStorageQuotaType.h" |
| 53 #include "WebString.h" | 53 #include "WebString.h" |
| 54 #include "WebURLError.h" | 54 #include "WebURLError.h" |
| 55 #include "WebVector.h" | 55 #include "WebVector.h" |
| 56 #include "base/metrics/user_metrics_action.h" | 56 #include "base/metrics/user_metrics_action.h" |
| 57 #include "cc/resources/shared_bitmap.h" | 57 #include "cc/resources/shared_bitmap.h" |
| 58 #include "cc/surfaces/frame_sink_id.h" |
| 58 | 59 |
| 59 class GrContext; | 60 class GrContext; |
| 60 | 61 |
| 61 namespace gpu { | 62 namespace gpu { |
| 62 class GpuMemoryBufferManager; | 63 class GpuMemoryBufferManager; |
| 63 } | 64 } |
| 64 | 65 |
| 65 namespace v8 { | 66 namespace v8 { |
| 66 class Context; | 67 class Context; |
| 67 template <class T> | 68 template <class T> |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 // Returns the maximum amount of memory a decoded image should be allowed. | 315 // Returns the maximum amount of memory a decoded image should be allowed. |
| 315 // See comments on ImageDecoder::m_maxDecodedBytes. | 316 // See comments on ImageDecoder::m_maxDecodedBytes. |
| 316 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; } | 317 virtual size_t maxDecodedImageBytes() { return noDecodedImageByteLimit; } |
| 317 | 318 |
| 318 // Process ------------------------------------------------------------- | 319 // Process ------------------------------------------------------------- |
| 319 | 320 |
| 320 // Returns a unique identifier for a process. This may not necessarily be | 321 // Returns a unique identifier for a process. This may not necessarily be |
| 321 // the process's process ID. | 322 // the process's process ID. |
| 322 virtual uint32_t getUniqueIdForProcess() { return 0; } | 323 virtual uint32_t getUniqueIdForProcess() { return 0; } |
| 323 | 324 |
| 325 // Returns a unique FrameSinkID for the current renderer process |
| 326 virtual cc::FrameSinkId generateFrameSinkId() { return cc::FrameSinkId(); } |
| 327 |
| 324 // Message Ports ------------------------------------------------------- | 328 // Message Ports ------------------------------------------------------- |
| 325 | 329 |
| 326 // Creates a Message Port Channel pair. This can be called on any thread. | 330 // 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 | 331 // The returned objects should only be used on the thread they were created |
| 328 // on. | 332 // on. |
| 329 virtual void createMessageChannel(WebMessagePortChannel** channel1, | 333 virtual void createMessageChannel(WebMessagePortChannel** channel1, |
| 330 WebMessagePortChannel** channel2) { | 334 WebMessagePortChannel** channel2) { |
| 331 *channel1 = 0; | 335 *channel1 = 0; |
| 332 *channel2 = 0; | 336 *channel2 = 0; |
| 333 } | 337 } |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 protected: | 679 protected: |
| 676 Platform(); | 680 Platform(); |
| 677 virtual ~Platform() {} | 681 virtual ~Platform() {} |
| 678 | 682 |
| 679 WebThread* m_mainThread; | 683 WebThread* m_mainThread; |
| 680 }; | 684 }; |
| 681 | 685 |
| 682 } // namespace blink | 686 } // namespace blink |
| 683 | 687 |
| 684 #endif | 688 #endif |
| OLD | NEW |