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

Unified Diff: third_party/WebKit/public/platform/WebTrialTokenValidator.h

Issue 1909633003: Collect UMA data for Origin Trials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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: third_party/WebKit/public/platform/WebTrialTokenValidator.h
diff --git a/third_party/WebKit/public/platform/WebTrialTokenValidator.h b/third_party/WebKit/public/platform/WebTrialTokenValidator.h
index b11cb215a68614b540b686f6f1d4ad2c12b58402..9b7860c4ea5877e309d32c42fed988aa936c8506 100644
--- a/third_party/WebKit/public/platform/WebTrialTokenValidator.h
+++ b/third_party/WebKit/public/platform/WebTrialTokenValidator.h
@@ -11,13 +11,14 @@
namespace blink {
+enum class WebOriginTrialTokenStatus;
+
// This interface abstracts the task of validating a token for an experimental
// feature. Experimental features can be turned on and off at runtime for a
// specific renderer, depending on the presence of a valid token provided by
// the origin.
//
-// More documentation on the design of the experimental framework is at
-// https://docs.google.com/document/d/1qVP2CK1lbfmtIJRIm6nwuEFFhGhYbtThLQPo3CSTtmg
+// For more information, see https://github.com/jpchase/OriginTrials.
class WebTrialTokenValidator {
public:
@@ -25,7 +26,7 @@ public:
// Returns true if the given token is valid for the specified origin and
// feature name.
- virtual bool validateToken(const WebString& token, const WebSecurityOrigin&, const WebString& featureName) = 0;
+ virtual WebOriginTrialTokenStatus validateToken(const WebString& token, const WebSecurityOrigin&, const WebString& featureName) = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698