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

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: Fix/update unit tests 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..b3502442d455d3af877384d802a330da23524c51 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,11 @@ 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(
iclelland 2016/04/28 17:00:58 Do these need to be wrapped like this now? I've ne
chasej 2016/05/02 15:53:11 Victim of git cl format. Format seems to apply Chr
+ const WebString& token,
+ const WebSecurityOrigin&,
+ const WebString& featureName)
+ = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698