summaryrefslogtreecommitdiff
path: root/chromium/content/browser/appcache/appcache_request.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/appcache/appcache_request.h')
-rw-r--r--chromium/content/browser/appcache/appcache_request.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chromium/content/browser/appcache/appcache_request.h b/chromium/content/browser/appcache/appcache_request.h
index 244ab6058b4..cf189e45d3d 100644
--- a/chromium/content/browser/appcache/appcache_request.h
+++ b/chromium/content/browser/appcache/appcache_request.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/memory/weak_ptr.h"
+#include "base/optional.h"
#include "base/sequence_checker.h"
#include "content/common/content_export.h"
#include "services/network/public/cpp/resource_request.h"
@@ -23,6 +24,10 @@ namespace network {
struct ResourceRequest;
}
+namespace url {
+class Origin;
+}
+
namespace content {
// Interface for an AppCache request. Subclasses implement this interface to
@@ -44,6 +49,9 @@ class CONTENT_EXPORT AppCacheRequest {
return request_.site_for_cookies;
}
+ // Used for cookie policy.
+ base::Optional<url::Origin> GetTopFrameOrigin() const;
+
// The referrer for this request.
const GURL GetReferrer() const { return request_.referrer; }