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

Unified Diff: content/common/net/url_fetcher.cc

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 | « content/common/media/media_player_messages_android.h ('k') | content/common/resource_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/net/url_fetcher.cc
diff --git a/content/common/net/url_fetcher.cc b/content/common/net/url_fetcher.cc
index f4bf457b26bf8d3863589fc3cbeb10c0fc5c2f27..6540f0da7cc2afe2b6c88b6388d6fd055ce8ec61 100644
--- a/content/common/net/url_fetcher.cc
+++ b/content/common/net/url_fetcher.cc
@@ -19,15 +19,16 @@ base::SupportsUserData::Data* CreateURLRequestUserData(int render_process_id,
} // namespace
-void AssociateURLFetcherWithRenderFrame(net::URLFetcher* url_fetcher,
- const GURL& initiator,
- int render_process_id,
- int render_frame_id) {
- url_fetcher->SetInitiatorURL(initiator);
+void AssociateURLFetcherWithRenderFrame(
+ net::URLFetcher* url_fetcher,
+ const base::Optional<url::Origin>& initiator,
+ int render_process_id,
+ int render_frame_id) {
+ url_fetcher->SetInitiator(initiator);
url_fetcher->SetURLRequestUserData(
URLRequestUserData::kUserDataKey,
- base::Bind(&CreateURLRequestUserData,
- render_process_id, render_frame_id));
+ base::Bind(&CreateURLRequestUserData, render_process_id,
+ render_frame_id));
}
} // namespace content
« no previous file with comments | « content/common/media/media_player_messages_android.h ('k') | content/common/resource_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698