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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 #include "base/metrics/user_metrics_action.h" | 56 #include "base/metrics/user_metrics_action.h" |
57 | 57 |
58 #include "mojo/public/cpp/bindings/interface_request.h" | 58 #include "mojo/public/cpp/bindings/interface_request.h" |
59 #include "mojo/public/cpp/system/core.h" | 59 #include "mojo/public/cpp/system/core.h" |
60 | 60 |
61 class GrContext; | 61 class GrContext; |
62 | 62 |
63 namespace blink { | 63 namespace blink { |
64 | 64 |
65 class WebAudioBus; | 65 class WebAudioBus; |
| 66 class WebBlameContext; |
66 class WebBlobRegistry; | 67 class WebBlobRegistry; |
67 class WebCanvasCaptureHandler; | 68 class WebCanvasCaptureHandler; |
68 class WebClipboard; | 69 class WebClipboard; |
69 class WebCompositorSupport; | 70 class WebCompositorSupport; |
70 class WebCookieJar; | 71 class WebCookieJar; |
71 class WebCrypto; | 72 class WebCrypto; |
72 class WebDatabaseObserver; | 73 class WebDatabaseObserver; |
73 class WebDiscardableMemory; | 74 class WebDiscardableMemory; |
74 class WebPlatformEventListener; | 75 class WebPlatformEventListener; |
75 class WebFallbackThemeEngine; | 76 class WebFallbackThemeEngine; |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 | 345 |
345 // Threads ------------------------------------------------------- | 346 // Threads ------------------------------------------------------- |
346 | 347 |
347 // Creates an embedder-defined thread. | 348 // Creates an embedder-defined thread. |
348 virtual WebThread* createThread(const char* name) { return nullptr; } | 349 virtual WebThread* createThread(const char* name) { return nullptr; } |
349 | 350 |
350 // Returns an interface to the current thread. This is owned by the | 351 // Returns an interface to the current thread. This is owned by the |
351 // embedder. | 352 // embedder. |
352 virtual WebThread* currentThread() { return nullptr; } | 353 virtual WebThread* currentThread() { return nullptr; } |
353 | 354 |
| 355 // Returns a blame context for attributing work to the thread-global scope. |
| 356 virtual WebBlameContext* threadBlameContext() { return nullptr; } |
| 357 |
354 // Resources ----------------------------------------------------------- | 358 // Resources ----------------------------------------------------------- |
355 | 359 |
356 // Returns a blob of data corresponding to the named resource. | 360 // Returns a blob of data corresponding to the named resource. |
357 virtual WebData loadResource(const char* name) { return WebData(); } | 361 virtual WebData loadResource(const char* name) { return WebData(); } |
358 | 362 |
359 // Decodes the in-memory audio file data and returns the linear PCM audio da
ta in the destinationBus. | 363 // Decodes the in-memory audio file data and returns the linear PCM audio da
ta in the destinationBus. |
360 // A sample-rate conversion to sampleRate will occur if the file data is at
a different sample-rate. | 364 // A sample-rate conversion to sampleRate will occur if the file data is at
a different sample-rate. |
361 // Returns true on success. | 365 // Returns true on success. |
362 virtual bool loadAudioResource(WebAudioBus* destinationBus, const char* audi
oFileData, size_t dataSize) { return false; } | 366 virtual bool loadAudioResource(WebAudioBus* destinationBus, const char* audi
oFileData, size_t dataSize) { return false; } |
363 | 367 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 protected: | 615 protected: |
612 BLINK_PLATFORM_EXPORT Platform(); | 616 BLINK_PLATFORM_EXPORT Platform(); |
613 virtual ~Platform() { } | 617 virtual ~Platform() { } |
614 | 618 |
615 WebThread* m_mainThread; | 619 WebThread* m_mainThread; |
616 }; | 620 }; |
617 | 621 |
618 } // namespace blink | 622 } // namespace blink |
619 | 623 |
620 #endif | 624 #endif |
OLD | NEW |