| OLD | NEW |
| 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_ |
| OLD | NEW |