Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: public/platform/Platform.h

Issue 1087203002: Patch 2/3 to get WebScheduler via WebThread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix compile Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 class WebNavigatorConnectProvider; 91 class WebNavigatorConnectProvider;
92 class WebNotificationManager; 92 class WebNotificationManager;
93 class WebPermissionClient; 93 class WebPermissionClient;
94 class WebPluginListBuilder; 94 class WebPluginListBuilder;
95 class WebPrescientNetworking; 95 class WebPrescientNetworking;
96 class WebPublicSuffixList; 96 class WebPublicSuffixList;
97 class WebPushProvider; 97 class WebPushProvider;
98 class WebRTCPeerConnectionHandler; 98 class WebRTCPeerConnectionHandler;
99 class WebRTCPeerConnectionHandlerClient; 99 class WebRTCPeerConnectionHandlerClient;
100 class WebSandboxSupport; 100 class WebSandboxSupport;
101 class WebScheduler;
102 class WebSecurityOrigin; 101 class WebSecurityOrigin;
103 class WebScrollbarBehavior; 102 class WebScrollbarBehavior;
104 class WebServiceWorkerCacheStorage; 103 class WebServiceWorkerCacheStorage;
105 class WebSocketHandle; 104 class WebSocketHandle;
106 class WebSpeechSynthesizer; 105 class WebSpeechSynthesizer;
107 class WebSpeechSynthesizerClient; 106 class WebSpeechSynthesizerClient;
108 class WebStorageNamespace; 107 class WebStorageNamespace;
109 class WebSyncProvider; 108 class WebSyncProvider;
110 struct WebFloatPoint; 109 struct WebFloatPoint;
111 class WebThemeEngine; 110 class WebThemeEngine;
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 // Creates an embedder-defined thread. 368 // Creates an embedder-defined thread.
370 virtual WebThread* createThread(const char* name) { return 0; } 369 virtual WebThread* createThread(const char* name) { return 0; }
371 370
372 // Returns an interface to the current thread. This is owned by the 371 // Returns an interface to the current thread. This is owned by the
373 // embedder. 372 // embedder.
374 virtual WebThread* currentThread() { return 0; } 373 virtual WebThread* currentThread() { return 0; }
375 374
376 // Yield the current thread so another thread can be scheduled. 375 // Yield the current thread so another thread can be scheduled.
377 virtual void yieldCurrentThread() { } 376 virtual void yieldCurrentThread() { }
378 377
379 // May return null.
380 virtual WebScheduler* scheduler() { return 0; }
381
382 // WaitableEvent ------------------------------------------------------- 378 // WaitableEvent -------------------------------------------------------
383 379
384 // Creates an embedder-defined waitable event object. 380 // Creates an embedder-defined waitable event object.
385 virtual WebWaitableEvent* createWaitableEvent() { return 0; } 381 virtual WebWaitableEvent* createWaitableEvent() { return 0; }
386 382
387 // Waits on multiple events and returns the event object that has been 383 // Waits on multiple events and returns the event object that has been
388 // signaled. This may return 0 if it fails to wait events. 384 // signaled. This may return 0 if it fails to wait events.
389 // Any event objects given to this method must not deleted while this 385 // Any event objects given to this method must not deleted while this
390 // wait is happening. 386 // wait is happening.
391 virtual WebWaitableEvent* waitMultipleEvents(const WebVector<WebWaitableEven t*>& events) { return 0; } 387 virtual WebWaitableEvent* waitMultipleEvents(const WebVector<WebWaitableEven t*>& events) { return 0; }
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 protected: 697 protected:
702 BLINK_PLATFORM_EXPORT Platform(); 698 BLINK_PLATFORM_EXPORT Platform();
703 virtual ~Platform() { } 699 virtual ~Platform() { }
704 700
705 WebThread* m_mainThread; 701 WebThread* m_mainThread;
706 }; 702 };
707 703
708 } // namespace blink 704 } // namespace blink
709 705
710 #endif 706 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698