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

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: Style nits 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
« no previous file with comments | « Source/web/WebKit.cpp ('k') | public/platform/WebScheduler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 // Creates an embedder-defined thread. 370 // Creates an embedder-defined thread.
372 virtual WebThread* createThread(const char* name) { return 0; } 371 virtual WebThread* createThread(const char* name) { return 0; }
373 372
374 // Returns an interface to the current thread. This is owned by the 373 // Returns an interface to the current thread. This is owned by the
375 // embedder. 374 // embedder.
376 virtual WebThread* currentThread() { return 0; } 375 virtual WebThread* currentThread() { return 0; }
377 376
378 // Yield the current thread so another thread can be scheduled. 377 // Yield the current thread so another thread can be scheduled.
379 virtual void yieldCurrentThread() { } 378 virtual void yieldCurrentThread() { }
380 379
381 // May return null.
382 virtual WebScheduler* scheduler() { return 0; }
383
384 // WaitableEvent ------------------------------------------------------- 380 // WaitableEvent -------------------------------------------------------
385 381
386 // Creates an embedder-defined waitable event object. 382 // Creates an embedder-defined waitable event object.
387 virtual WebWaitableEvent* createWaitableEvent() { return 0; } 383 virtual WebWaitableEvent* createWaitableEvent() { return 0; }
388 384
389 // Waits on multiple events and returns the event object that has been 385 // Waits on multiple events and returns the event object that has been
390 // signaled. This may return 0 if it fails to wait events. 386 // signaled. This may return 0 if it fails to wait events.
391 // Any event objects given to this method must not deleted while this 387 // Any event objects given to this method must not deleted while this
392 // wait is happening. 388 // wait is happening.
393 virtual WebWaitableEvent* waitMultipleEvents(const WebVector<WebWaitableEven t*>& events) { return 0; } 389 virtual WebWaitableEvent* waitMultipleEvents(const WebVector<WebWaitableEven t*>& events) { return 0; }
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 protected: 699 protected:
704 BLINK_PLATFORM_EXPORT Platform(); 700 BLINK_PLATFORM_EXPORT Platform();
705 virtual ~Platform() { } 701 virtual ~Platform() { }
706 702
707 WebThread* m_mainThread; 703 WebThread* m_mainThread;
708 }; 704 };
709 705
710 } // namespace blink 706 } // namespace blink
711 707
712 #endif 708 #endif
OLDNEW
« no previous file with comments | « Source/web/WebKit.cpp ('k') | public/platform/WebScheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698