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

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: 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 side-by-side diff with in-line comments
Download patch
Index: Source/platform/TraceLocation.h
diff --git a/Source/platform/TraceLocation.h b/Source/platform/TraceLocation.h
index 91513a9372b1fd24a6e785fa3fc4cb88a7fe01ab..fa5e5896e9f5d627c0cc7761ace40b6e1679c909 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.
@@ -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;

Powered by Google App Engine
This is Rietveld 408576698