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

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

Issue 1447563002: Implement frame attribution (FrameBlamer) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 4 years, 9 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 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef Platform_h 31 #ifndef Platform_h
32 #define Platform_h 32 #define Platform_h
33 33
34 #ifdef WIN32 34 #ifdef WIN32
35 #include <windows.h> 35 #include <windows.h>
36 #endif 36 #endif
37 37
38 #include "BlameContext.h"
38 #include "UserMetricsAction.h" 39 #include "UserMetricsAction.h"
39 #include "WebAudioDevice.h" 40 #include "WebAudioDevice.h"
40 #include "WebCommon.h" 41 #include "WebCommon.h"
41 #include "WebData.h" 42 #include "WebData.h"
42 #include "WebDeviceLightListener.h" 43 #include "WebDeviceLightListener.h"
43 #include "WebGamepadListener.h" 44 #include "WebGamepadListener.h"
44 #include "WebGamepads.h" 45 #include "WebGamepads.h"
45 #include "WebGestureDevice.h" 46 #include "WebGestureDevice.h"
46 #include "WebGraphicsContext3D.h" 47 #include "WebGraphicsContext3D.h"
47 #include "WebLocalizedString.h" 48 #include "WebLocalizedString.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 348
348 // Threads ------------------------------------------------------- 349 // Threads -------------------------------------------------------
349 350
350 // Creates an embedder-defined thread. 351 // Creates an embedder-defined thread.
351 virtual WebThread* createThread(const char* name) { return nullptr; } 352 virtual WebThread* createThread(const char* name) { return nullptr; }
352 353
353 // Returns an interface to the current thread. This is owned by the 354 // Returns an interface to the current thread. This is owned by the
354 // embedder. 355 // embedder.
355 virtual WebThread* currentThread() { return nullptr; } 356 virtual WebThread* currentThread() { return nullptr; }
356 357
358 // Returns a blame context for attributing work to the thread-global scope.
359 virtual BlameContext* threadBlameContext() { return nullptr; }
360
357 // Resources ----------------------------------------------------------- 361 // Resources -----------------------------------------------------------
358 362
359 // Returns a blob of data corresponding to the named resource. 363 // Returns a blob of data corresponding to the named resource.
360 virtual WebData loadResource(const char* name) { return WebData(); } 364 virtual WebData loadResource(const char* name) { return WebData(); }
361 365
362 // Decodes the in-memory audio file data and returns the linear PCM audio da ta in the destinationBus. 366 // Decodes the in-memory audio file data and returns the linear PCM audio da ta in the destinationBus.
363 // A sample-rate conversion to sampleRate will occur if the file data is at a different sample-rate. 367 // A sample-rate conversion to sampleRate will occur if the file data is at a different sample-rate.
364 // Returns true on success. 368 // Returns true on success.
365 virtual bool loadAudioResource(WebAudioBus* destinationBus, const char* audi oFileData, size_t dataSize) { return false; } 369 virtual bool loadAudioResource(WebAudioBus* destinationBus, const char* audi oFileData, size_t dataSize) { return false; }
366 370
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 protected: 618 protected:
615 Platform(); 619 Platform();
616 virtual ~Platform() { } 620 virtual ~Platform() { }
617 621
618 WebThread* m_mainThread; 622 WebThread* m_mainThread;
619 }; 623 };
620 624
621 } // namespace blink 625 } // namespace blink
622 626
623 #endif 627 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698