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

Unified Diff: base/sequence_token.h

Issue 2392903002: Add a task_scheduler tracing category which will record an extra event per task. (Closed)
Patch Set: review:danakj#19 Created 4 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 | « no previous file | base/sequence_token.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sequence_token.h
diff --git a/base/sequence_token.h b/base/sequence_token.h
index 80340c0f11f07ed359463c1bd941fa2ba9bd04b0..6e7d191ae8a83f4ab383291757522bc4bb84192d 100644
--- a/base/sequence_token.h
+++ b/base/sequence_token.h
@@ -29,6 +29,10 @@ class BASE_EXPORT SequenceToken {
// Returns true if this is a valid SequenceToken.
bool IsValid() const;
+ // Returns the integer uniquely representing this SequenceToken. This method
+ // should only be used for tracing and debugging.
+ int ToInternalValue() const;
+
// Returns a valid SequenceToken which isn't equal to any previously returned
// SequenceToken.
static SequenceToken Create();
« no previous file with comments | « no previous file | base/sequence_token.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698