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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 56 |
57 class GrContext; | 57 class GrContext; |
58 | 58 |
59 namespace blink { | 59 namespace blink { |
60 | 60 |
61 class WebAudioBus; | 61 class WebAudioBus; |
| 62 class WebBlameContext; |
62 class WebBlobRegistry; | 63 class WebBlobRegistry; |
63 class WebCanvasCaptureHandler; | 64 class WebCanvasCaptureHandler; |
64 class WebClipboard; | 65 class WebClipboard; |
65 class WebCompositorSupport; | 66 class WebCompositorSupport; |
66 class WebCookieJar; | 67 class WebCookieJar; |
67 class WebCrypto; | 68 class WebCrypto; |
68 class WebDatabaseObserver; | 69 class WebDatabaseObserver; |
69 class WebDiscardableMemory; | 70 class WebDiscardableMemory; |
70 class WebPlatformEventListener; | 71 class WebPlatformEventListener; |
71 class WebFallbackThemeEngine; | 72 class WebFallbackThemeEngine; |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 | 341 |
341 // Threads ------------------------------------------------------- | 342 // Threads ------------------------------------------------------- |
342 | 343 |
343 // Creates an embedder-defined thread. | 344 // Creates an embedder-defined thread. |
344 virtual WebThread* createThread(const char* name) { return nullptr; } | 345 virtual WebThread* createThread(const char* name) { return nullptr; } |
345 | 346 |
346 // Returns an interface to the current thread. This is owned by the | 347 // Returns an interface to the current thread. This is owned by the |
347 // embedder. | 348 // embedder. |
348 virtual WebThread* currentThread() { return nullptr; } | 349 virtual WebThread* currentThread() { return nullptr; } |
349 | 350 |
| 351 virtual WebBlameContext* threadBlameContext() { return nullptr; } |
| 352 |
350 // Resources ----------------------------------------------------------- | 353 // Resources ----------------------------------------------------------- |
351 | 354 |
352 // Returns a blob of data corresponding to the named resource. | 355 // Returns a blob of data corresponding to the named resource. |
353 virtual WebData loadResource(const char* name) { return WebData(); } | 356 virtual WebData loadResource(const char* name) { return WebData(); } |
354 | 357 |
355 // Decodes the in-memory audio file data and returns the linear PCM audio da
ta in the destinationBus. | 358 // Decodes the in-memory audio file data and returns the linear PCM audio da
ta in the destinationBus. |
356 // A sample-rate conversion to sampleRate will occur if the file data is at
a different sample-rate. | 359 // A sample-rate conversion to sampleRate will occur if the file data is at
a different sample-rate. |
357 // Returns true on success. | 360 // Returns true on success. |
358 virtual bool loadAudioResource(WebAudioBus* destinationBus, const char* audi
oFileData, size_t dataSize) { return false; } | 361 virtual bool loadAudioResource(WebAudioBus* destinationBus, const char* audi
oFileData, size_t dataSize) { return false; } |
359 | 362 |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 protected: | 596 protected: |
594 BLINK_PLATFORM_EXPORT Platform(); | 597 BLINK_PLATFORM_EXPORT Platform(); |
595 virtual ~Platform() { } | 598 virtual ~Platform() { } |
596 | 599 |
597 WebThread* m_mainThread; | 600 WebThread* m_mainThread; |
598 }; | 601 }; |
599 | 602 |
600 } // namespace blink | 603 } // namespace blink |
601 | 604 |
602 #endif | 605 #endif |
OLD | NEW |