summaryrefslogtreecommitdiff
path: root/chromium/content/browser/appcache/appcache_host.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/appcache/appcache_host.h')
-rw-r--r--chromium/content/browser/appcache/appcache_host.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/chromium/content/browser/appcache/appcache_host.h b/chromium/content/browser/appcache/appcache_host.h
index be06852b567..111775d8c80 100644
--- a/chromium/content/browser/appcache/appcache_host.h
+++ b/chromium/content/browser/appcache/appcache_host.h
@@ -17,6 +17,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
+#include "base/optional.h"
#include "content/browser/appcache/appcache_group.h"
#include "content/browser/appcache/appcache_service_impl.h"
#include "content/browser/appcache/appcache_storage.h"
@@ -229,6 +230,10 @@ class CONTENT_EXPORT AppCacheHost : public blink::mojom::AppCacheHost,
site_for_cookies_initialized_ = true;
}
+ const base::Optional<url::Origin>& top_frame_origin() const {
+ return top_frame_origin_;
+ }
+
void set_origin_for_url_loader_factory(const url::Origin& origin) {
origin_for_url_loader_factory_ = origin;
}
@@ -248,6 +253,8 @@ class CONTENT_EXPORT AppCacheHost : public blink::mojom::AppCacheHost,
void OnContentBlocked(const GURL& manifest_url);
+ bool IsOriginTrialRequiredForAppCache();
+
private:
friend class content::AppCacheStorageImplTest;
friend class content::AppCacheRequestHandlerTest;
@@ -411,6 +418,9 @@ class CONTENT_EXPORT AppCacheHost : public blink::mojom::AppCacheHost,
// To be used in policy checks.
net::SiteForCookies site_for_cookies_;
bool site_for_cookies_initialized_ = false;
+ base::Optional<url::Origin> top_frame_origin_;
+
+ bool is_origin_trial_required_ = false;
FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, CleanupUnusedGroup);
FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate);