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

Side by Side Diff: third_party/WebKit/public/platform/WebTrialTokenValidator.h

Issue 1635593004: Rename Experimental Framework classes and concepts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename RuntimeEnabledFeatures flag to experimental_feature_name Created 4 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebTrialTokenValidator_h
6 #define WebTrialTokenValidator_h
7
8 #include "public/platform/WebCallbacks.h"
9 #include "public/platform/WebString.h"
10
11 namespace blink {
12
13 // This interface abstracts the task of validating a token for an experimental
14 // feature. Experimental features can be turned on and off at runtime for a
15 // specific renderer, depending on the presence of a valid token in the
16 // document's head. The details of determining whether a token is valid for a
chasej 2016/01/26 16:56:53 I'd suggest a more generic comment about where tok
iclelland 2016/01/26 19:05:49 Done.
17 // particular feature is left up to the embedder. An implementation can
chasej 2016/01/26 16:56:53 Given that the token validation happens in the ren
iclelland 2016/01/26 19:05:49 ... it's unfortunate, perhaps, but true for the ti
18 // effectively disable all origin trials by simply returning false in all cases.
19 //
20 // More documentation on the design of the experimental framework is at
21 // https://docs.google.com/document/d/1qVP2CK1lbfmtIJRIm6nwuEFFhGhYbtThLQPo3CSTt mg
22
23 class WebTrialTokenValidator {
24 public:
25 virtual ~WebTrialTokenValidator() {}
26
27 // Returns true if the given token is valid for the specified origin and
28 // feature name.
29 virtual bool validateToken(const WebString& token, const WebString& origin, const WebString& featureName) = 0;
30 };
31
32 } // namespace blink
33
34 #endif // WebTrialTokenValidator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698