| Index: third_party/WebKit/public/platform/WebTraceLocation.h
|
| diff --git a/third_party/WebKit/public/platform/WebTraceLocation.h b/third_party/WebKit/public/platform/WebTraceLocation.h
|
| index 168badc5bffa73f694b60ed30dc792a7ba8f31e1..3203f0805ae85ceb1534ec0937db30927a3605c4 100644
|
| --- a/third_party/WebKit/public/platform/WebTraceLocation.h
|
| +++ b/third_party/WebKit/public/platform/WebTraceLocation.h
|
| @@ -5,12 +5,27 @@
|
| #ifndef WebTraceLocation_h
|
| #define WebTraceLocation_h
|
|
|
| -#include "base/location.h"
|
| +#include "WebCommon.h"
|
|
|
| namespace blink {
|
|
|
| -using WebTraceLocation = tracked_objects::Location;
|
| -#define BLINK_FROM_HERE FROM_HERE
|
| +// This class is used to keep track of where posted tasks originate. See base/location.h in Chromium.
|
| +// Currently only store the bits used in Blink, base::Location stores more.
|
| +class BLINK_PLATFORM_EXPORT WebTraceLocation {
|
| +public:
|
| + // These char*s are not copied and must live for the duration of the program.
|
| + WebTraceLocation(const char* function, const char* file);
|
| + WebTraceLocation();
|
| +
|
| + const char* functionName() const;
|
| + const char* fileName() const;
|
| +
|
| +private:
|
| + const char* m_functionName;
|
| + const char* m_fileName;
|
| +};
|
| +
|
| +#define BLINK_FROM_HERE ::blink::WebTraceLocation(__FUNCTION__, __FILE__)
|
|
|
| }
|
|
|
|
|