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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 class WebPublicSuffixList; | 81 class WebPublicSuffixList; |
82 class WebRTCPeerConnectionHandler; | 82 class WebRTCPeerConnectionHandler; |
83 class WebRTCPeerConnectionHandlerClient; | 83 class WebRTCPeerConnectionHandlerClient; |
84 class WebSandboxSupport; | 84 class WebSandboxSupport; |
85 class WebSocketHandle; | 85 class WebSocketHandle; |
86 class WebSocketStreamHandle; | 86 class WebSocketStreamHandle; |
87 class WebSpeechSynthesizer; | 87 class WebSpeechSynthesizer; |
88 class WebSpeechSynthesizerClient; | 88 class WebSpeechSynthesizerClient; |
89 class WebStorageNamespace; | 89 class WebStorageNamespace; |
90 class WebStorageQuotaCallbacks; | 90 class WebStorageQuotaCallbacks; |
91 class WebUnitTestSupport; | 91 struct WebFloatPoint; |
92 class WebThemeEngine; | 92 class WebThemeEngine; |
93 class WebThread; | 93 class WebThread; |
94 class WebURL; | 94 class WebURL; |
95 class WebURLLoader; | 95 class WebURLLoader; |
| 96 class WebUnitTestSupport; |
| 97 class WebWaitableEvent; |
96 class WebWorkerRunLoop; | 98 class WebWorkerRunLoop; |
97 struct WebFloatPoint; | |
98 struct WebLocalizedString; | 99 struct WebLocalizedString; |
99 struct WebSize; | 100 struct WebSize; |
100 | 101 |
101 class Platform { | 102 class Platform { |
102 public: | 103 public: |
103 // HTML5 Database ------------------------------------------------------ | 104 // HTML5 Database ------------------------------------------------------ |
104 | 105 |
105 #ifdef WIN32 | 106 #ifdef WIN32 |
106 typedef HANDLE FileHandle; | 107 typedef HANDLE FileHandle; |
107 #else | 108 #else |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 // Threads ------------------------------------------------------- | 357 // Threads ------------------------------------------------------- |
357 | 358 |
358 // Creates an embedder-defined thread. | 359 // Creates an embedder-defined thread. |
359 virtual WebThread* createThread(const char* name) { return 0; } | 360 virtual WebThread* createThread(const char* name) { return 0; } |
360 | 361 |
361 // Returns an interface to the current thread. This is owned by the | 362 // Returns an interface to the current thread. This is owned by the |
362 // embedder. | 363 // embedder. |
363 virtual WebThread* currentThread() { return 0; } | 364 virtual WebThread* currentThread() { return 0; } |
364 | 365 |
365 | 366 |
| 367 // WaitableEvent ------------------------------------------------------- |
| 368 |
| 369 // Creates an embedder-defined waitable event object. |
| 370 virtual WebWaitableEvent* createWaitableEvent() { return 0; } |
| 371 |
| 372 // Waits on multiple events and returns the event object that has been |
| 373 // signaled. This may return 0 if it fails to wait events. |
| 374 // Any event objects given to this method must not deleted while this |
| 375 // wait is happening. |
| 376 virtual WebWaitableEvent* waitMultipleEvents(const WebVector<WebWaitableEven
t*>& events) { return 0; } |
| 377 |
| 378 |
366 // Profiling ----------------------------------------------------------- | 379 // Profiling ----------------------------------------------------------- |
367 | 380 |
368 virtual void decrementStatsCounter(const char* name) { } | 381 virtual void decrementStatsCounter(const char* name) { } |
369 virtual void incrementStatsCounter(const char* name) { } | 382 virtual void incrementStatsCounter(const char* name) { } |
370 | 383 |
371 | 384 |
372 // Resources ----------------------------------------------------------- | 385 // Resources ----------------------------------------------------------- |
373 | 386 |
374 // Returns a blob of data corresponding to the named resource. | 387 // Returns a blob of data corresponding to the named resource. |
375 virtual WebData loadResource(const char* name) { return WebData(); } | 388 virtual WebData loadResource(const char* name) { return WebData(); } |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 virtual WebDatabaseObserver* databaseObserver() { return 0; } | 626 virtual WebDatabaseObserver* databaseObserver() { return 0; } |
614 | 627 |
615 | 628 |
616 protected: | 629 protected: |
617 virtual ~Platform() { } | 630 virtual ~Platform() { } |
618 }; | 631 }; |
619 | 632 |
620 } // namespace blink | 633 } // namespace blink |
621 | 634 |
622 #endif | 635 #endif |
OLD | NEW |