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

Unified Diff: content/browser/service_worker/foreign_fetch_request_handler.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/browser/service_worker/foreign_fetch_request_handler.h
diff --git a/content/browser/service_worker/foreign_fetch_request_handler.h b/content/browser/service_worker/foreign_fetch_request_handler.h
index 47d0fdefc888b5b351ba56c3586e4118fd8880e1..5968f1037be94333ebf0ac252082cf6edf8781c0 100644
--- a/content/browser/service_worker/foreign_fetch_request_handler.h
+++ b/content/browser/service_worker/foreign_fetch_request_handler.h
@@ -46,6 +46,12 @@ class CONTENT_EXPORT ForeignFetchRequestHandler
: public base::SupportsUserData::Data,
public ServiceWorkerURLRequestJob::Delegate {
public:
+ // Returns true if Foreign Fetch is enabled. Foreign Fetch is considered to be
+ // enabled if an OriginTrialPolicy exists, and that policy doesn't disable the
+ // feature. When the policy does disable the feature, that can be overridden
+ // with the experimental web platform features command line flag.
+ static bool IsForeignFetchEnabled();
+
// Attaches a newly created handler if the given |request| needs to
// be handled by a foreign fetch handling ServiceWorker.
static void InitializeHandler(

Powered by Google App Engine
This is Rietveld 408576698