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

Unified Diff: Source/platform/TraceLocation.h

Issue 656463004: Use the scheduling mechanism provided by the platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Mike's comments. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/SharedTimer.cpp ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/TraceLocation.h
diff --git a/Source/platform/TraceLocation.h b/Source/platform/TraceLocation.h
index 91513a9372b1fd24a6e785fa3fc4cb88a7fe01ab..87dc31e707f1cfde6f794b848c8ecd15bb43f138 100644
--- a/Source/platform/TraceLocation.h
+++ b/Source/platform/TraceLocation.h
@@ -5,6 +5,8 @@
#ifndef TraceLocation_h
#define TraceLocation_h
+#include "public/platform/WebTraceLocation.h"
+
// This is intentionally similar to base/location.h
// that we could easily replace usage of TraceLocation
// with base::Location after merging into Chromium.
@@ -13,7 +15,7 @@ namespace blink {
class TraceLocation {
public:
- // Currenetly only store the bits used in Blink, base::Location stores more.
+ // Currently only store the bits used in Blink, base::Location stores more.
// These char*s are not copied and must live for the duration of the program.
TraceLocation(const char* functionName, const char* fileName)
: m_functionName(functionName)
@@ -28,6 +30,11 @@ public:
const char* functionName() const { return m_functionName; }
const char* fileName() const { return m_fileName; }
+ WebTraceLocation toWebTraceLocation() const
+ {
+ return WebTraceLocation(m_functionName, m_fileName);
+ }
+
private:
const char* m_functionName;
const char* m_fileName;
« no previous file with comments | « Source/platform/SharedTimer.cpp ('k') | Source/platform/blink_platform.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698