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

Side by Side Diff: content/public/common/url_fetcher.h

Issue 2405483002: Make the request initiator Optional (Closed)
Patch Set: Addressed comments + rebase 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 unified diff | Download patch
« no previous file with comments | « content/common/resource_request.h ('k') | content/public/test/test_download_request_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_COMMON_URL_FETCHER_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_URL_FETCHER_H_
6 #define CONTENT_PUBLIC_COMMON_URL_FETCHER_H_ 6 #define CONTENT_PUBLIC_COMMON_URL_FETCHER_H_
7 7
8 #include "base/optional.h"
8 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
9 10
10 class GURL;
11
12 namespace net { 11 namespace net {
13 class URLFetcher; 12 class URLFetcher;
14 } // namespace 13 } // namespace
15 14
15 namespace url {
16 class Origin;
17 } // namespace
18
16 namespace content { 19 namespace content {
17 20
18 // Mark URLRequests started by the URLFetcher to stem from the given render 21 // Mark URLRequests started by the URLFetcher to stem from the given render
19 // frame. 22 // frame.
20 CONTENT_EXPORT void AssociateURLFetcherWithRenderFrame( 23 CONTENT_EXPORT void AssociateURLFetcherWithRenderFrame(
21 net::URLFetcher* url_fetcher, 24 net::URLFetcher* url_fetcher,
22 const GURL& first_party_for_cookies, 25 const base::Optional<url::Origin>& initiator,
23 int render_process_id, 26 int render_process_id,
24 int render_frame_id); 27 int render_frame_id);
25 28
26 } // namespace content 29 } // namespace content
27 30
28 #endif // CONTENT_PUBLIC_COMMON_URL_FETCHER_H_ 31 #endif // CONTENT_PUBLIC_COMMON_URL_FETCHER_H_
OLDNEW
« no previous file with comments | « content/common/resource_request.h ('k') | content/public/test/test_download_request_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698