Index: net/url_request/url_fetcher.h |
diff --git a/net/url_request/url_fetcher.h b/net/url_request/url_fetcher.h |
index bb497cc15388bd1b1a668030d71ae107a82de4bd..725cf66afa224c496600d3b8efd4ea1c032fa214 100644 |
--- a/net/url_request/url_fetcher.h |
+++ b/net/url_request/url_fetcher.h |
@@ -26,6 +26,10 @@ class TaskRunner; |
class TimeDelta; |
} |
+namespace url { |
+class Origin; |
+} |
+ |
namespace net { |
class HostPortPair; |
class HttpRequestHeaders; |
@@ -207,12 +211,10 @@ class NET_EXPORT URLFetcher { |
virtual void SetRequestContext( |
URLRequestContextGetter* request_context_getter) = 0; |
- // Set the URL that should be considered as "initiating" the fetch. This URL |
- // will be considered the "first-party" when applying cookie blocking policy |
- // to requests, and treated as the request's initiator. |
- // |
- // TODO(mkwst): Convert this to take a 'url::Origin': https://crbug.com/577565 |
- virtual void SetInitiatorURL(const GURL& initiator) = 0; |
+ // Set the origin that should be considered as "initiating" the fetch. This |
+ // URL will be considered the "first-party" when applying cookie blocking |
+ // policy to requests, and treated as the request's initiator. |
+ virtual void SetInitiator(const base::Optional<url::Origin>& initiator) = 0; |
// Set the key and data callback that is used when setting the user |
// data on any URLRequest objects this object creates. |