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

Unified Diff: base/unguessable_token.h

Issue 2353663003: Add base::UnguessableToken << operator (Closed)
Patch Set: Created 4 years, 3 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/unguessable_token_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/unguessable_token.h
diff --git a/base/unguessable_token.h b/base/unguessable_token.h
index 64b1868886f2f0d06c613efa79a1f84ceb7b3c59..db17b6df071b07cff1a2acc0a7505434f741966b 100644
--- a/base/unguessable_token.h
+++ b/base/unguessable_token.h
@@ -7,6 +7,7 @@
#include <stdint.h>
#include <string.h>
+#include <iosfwd>
#include <tuple>
#include "base/base_export.h"
@@ -94,6 +95,11 @@ struct UnguessableTokenHash {
}
};
+BASE_EXPORT inline std::ostream& operator<<(std::ostream& out,
+ const UnguessableToken& token) {
+ return out << token.ToString();
danakj 2016/09/19 23:41:05 Can you put the defn in the .cc file?
tguilbert 2016/09/20 00:04:53 Done.
+}
+
} // namespace base
#endif // BASE_UNGUESSABLE_TOKEN_H_
« no previous file with comments | « no previous file | base/unguessable_token_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698