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

Unified Diff: net/url_request/url_fetcher.h

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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
« no previous file with comments | « net/url_request/test_url_fetcher_factory.cc ('k') | net/url_request/url_fetcher_core.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « net/url_request/test_url_fetcher_factory.cc ('k') | net/url_request/url_fetcher_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698