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

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

Issue 2116503004: Make Foreign Fetch an origin trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 4 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: 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 ec74e9ac5ae26c3433eef76b2040e17681cb5a6e..1997985cb4e4cc013324748b94997c25562c6c79 100644
--- a/content/common/origin_trials/trial_token_validator.h
+++ b/content/common/origin_trials/trial_token_validator.h
@@ -14,6 +14,11 @@ namespace blink {
enum class WebOriginTrialTokenStatus;
}
+namespace net {
+class HttpResponseHeaders;
+class URLRequest;
+}
+
namespace content {
namespace TrialTokenValidator {
@@ -26,6 +31,14 @@ CONTENT_EXPORT blink::WebOriginTrialTokenStatus ValidateToken(
const url::Origin& origin,
std::string* feature_name);
+CONTENT_EXPORT bool RequestEnablesFeature(const net::URLRequest* request,
+ base::StringPiece feature_name);
+
+CONTENT_EXPORT bool RequestEnablesFeature(
+ const GURL& request_url,
+ const net::HttpResponseHeaders* response_headers,
+ base::StringPiece feature_name);
+
} // namespace TrialTokenValidator
} // namespace content
« no previous file with comments | « content/browser/storage_partition_impl_map.cc ('k') | content/common/origin_trials/trial_token_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698