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

Unified Diff: content/common/origin_trials/trial_token_validator.h

Issue 1763943002: WIP add code to check http headers for origin trial tokens Base URL: https://chromium.googlesource.com/chromium/src.git@move-trial-token-code
Patch Set: rebase Created 4 years, 9 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 | content/common/origin_trials/trial_token_validator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/origin_trials/trial_token_validator.h
diff --git a/content/common/origin_trials/trial_token_validator.h b/content/common/origin_trials/trial_token_validator.h
index d19c112169dcbfc1d32cb533a20682915d7752a5..1194b60c54d08e264858ef63c000cb6360714657 100644
--- a/content/common/origin_trials/trial_token_validator.h
+++ b/content/common/origin_trials/trial_token_validator.h
@@ -10,6 +10,10 @@
#include "content/common/content_export.h"
#include "url/origin.h"
+namespace net {
+class URLRequest;
+}
+
namespace content {
namespace TrialTokenValidator {
@@ -19,6 +23,9 @@ CONTENT_EXPORT bool ValidateToken(const std::string& token,
const url::Origin& origin,
base::StringPiece featureName);
+CONTENT_EXPORT bool RequestEnablesFeature(const net::URLRequest* request,
+ base::StringPiece featureName);
+
} // namespace TrialTokenValidator
} // namespace content
« no previous file with comments | « no previous file | content/common/origin_trials/trial_token_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698