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

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

Issue 656463004: Use the scheduling mechanism provided by the platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed header path. Created 6 years, 2 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 | Annotate | Revision Log
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 class WebMediaStreamCenterClient; 85 class WebMediaStreamCenterClient;
86 class WebMessagePortChannel; 86 class WebMessagePortChannel;
87 class WebMimeRegistry; 87 class WebMimeRegistry;
88 class WebNotificationPresenter; 88 class WebNotificationPresenter;
89 class WebPluginListBuilder; 89 class WebPluginListBuilder;
90 class WebPrescientNetworking; 90 class WebPrescientNetworking;
91 class WebPublicSuffixList; 91 class WebPublicSuffixList;
92 class WebRTCPeerConnectionHandler; 92 class WebRTCPeerConnectionHandler;
93 class WebRTCPeerConnectionHandlerClient; 93 class WebRTCPeerConnectionHandlerClient;
94 class WebSandboxSupport; 94 class WebSandboxSupport;
95 class WebScheduler;
95 class WebSecurityOrigin; 96 class WebSecurityOrigin;
96 class WebScrollbarBehavior; 97 class WebScrollbarBehavior;
97 class WebSocketHandle; 98 class WebSocketHandle;
98 class WebSocketStreamHandle; 99 class WebSocketStreamHandle;
99 class WebSpeechSynthesizer; 100 class WebSpeechSynthesizer;
100 class WebSpeechSynthesizerClient; 101 class WebSpeechSynthesizerClient;
101 class WebStorageNamespace; 102 class WebStorageNamespace;
102 struct WebFloatPoint; 103 struct WebFloatPoint;
103 class WebThemeEngine; 104 class WebThemeEngine;
104 class WebThread; 105 class WebThread;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 // Creates an embedder-defined thread. 354 // Creates an embedder-defined thread.
354 virtual WebThread* createThread(const char* name) { return 0; } 355 virtual WebThread* createThread(const char* name) { return 0; }
355 356
356 // Returns an interface to the current thread. This is owned by the 357 // Returns an interface to the current thread. This is owned by the
357 // embedder. 358 // embedder.
358 virtual WebThread* currentThread() { return 0; } 359 virtual WebThread* currentThread() { return 0; }
359 360
360 // Yield the current thread so another thread can be scheduled. 361 // Yield the current thread so another thread can be scheduled.
361 virtual void yieldCurrentThread() { } 362 virtual void yieldCurrentThread() { }
362 363
364 // May return null.
eseidel 2014/10/21 16:11:02 I think instead of letting this return null and ne
Sami 2014/10/21 18:49:34 That's a great idea. Since it doesn't look like we
365 virtual WebScheduler* scheduler() { return 0; }
363 366
364 // WaitableEvent ------------------------------------------------------- 367 // WaitableEvent -------------------------------------------------------
365 368
366 // Creates an embedder-defined waitable event object. 369 // Creates an embedder-defined waitable event object.
367 virtual WebWaitableEvent* createWaitableEvent() { return 0; } 370 virtual WebWaitableEvent* createWaitableEvent() { return 0; }
368 371
369 // Waits on multiple events and returns the event object that has been 372 // Waits on multiple events and returns the event object that has been
370 // signaled. This may return 0 if it fails to wait events. 373 // signaled. This may return 0 if it fails to wait events.
371 // Any event objects given to this method must not deleted while this 374 // Any event objects given to this method must not deleted while this
372 // wait is happening. 375 // wait is happening.
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 642
640 virtual WebGeofencingProvider* geofencingProvider() { return 0; } 643 virtual WebGeofencingProvider* geofencingProvider() { return 0; }
641 644
642 protected: 645 protected:
643 virtual ~Platform() { } 646 virtual ~Platform() { }
644 }; 647 };
645 648
646 } // namespace blink 649 } // namespace blink
647 650
648 #endif 651 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698