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

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

Issue 2123323004: Simplify OriginTrialContext and the way it validates tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 9b7860c4ea5877e309d32c42fed988aa936c8506..8666cbedd3f3b9d5776e40e7ae3c9594d6245a1a 100644
--- a/third_party/WebKit/public/platform/WebTrialTokenValidator.h
+++ b/third_party/WebKit/public/platform/WebTrialTokenValidator.h
@@ -24,9 +24,10 @@ class WebTrialTokenValidator {
public:
virtual ~WebTrialTokenValidator() {}
- // Returns true if the given token is valid for the specified origin and
- // feature name.
- virtual WebOriginTrialTokenStatus validateToken(const WebString& token, const WebSecurityOrigin&, const WebString& featureName) = 0;
+ // Returns whether the given token is valid for the specified origin. If the
+ // token is valid, it also returns the feature the token is valid for in
+ // |*featureName|.
+ virtual WebOriginTrialTokenStatus validateToken(const WebString& token, const WebSecurityOrigin&, WebString* featureName) = 0;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698