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

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: cleaner order 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') | base/task_scheduler/task_tracker.cc » ('J')
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..115a883384b13aede8082b31db1abc23460b7073 100644
--- a/base/sequence_token.h
+++ b/base/sequence_token.h
@@ -5,6 +5,8 @@
#ifndef BASE_SEQUENCE_TOKEN_H_
#define BASE_SEQUENCE_TOKEN_H_
+#include <string>
+
#include "base/base_export.h"
#include "base/macros.h"
@@ -29,6 +31,9 @@ class BASE_EXPORT SequenceToken {
// Returns true if this is a valid SequenceToken.
bool IsValid() const;
+ // Returns a string with a number uniquely representing this SequenceToken.
fdoray 2016/10/05 12:39:40 Nobody should use this for logic. Maybe add: // S
gab 2016/10/05 20:12:43 Done.
+ std::string ToString() 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') | base/task_scheduler/task_tracker.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698