| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
| 10 | 10 |
| 11 // TODO(akalin): Remove this block once rlz is updated to use | |
| 12 // url_fetcher.h from net/. | |
| 13 #ifdef RLZ_LIB_FINANCIAL_PING_H_ | |
| 14 | |
| 15 #include "net/url_request/url_fetcher.h" | |
| 16 | |
| 17 #endif | |
| 18 | |
| 19 class GURL; | 11 class GURL; |
| 20 | 12 |
| 21 namespace net { | 13 namespace net { |
| 22 class URLFetcher; | 14 class URLFetcher; |
| 23 } // namespace | 15 } // namespace |
| 24 | 16 |
| 25 namespace content { | 17 namespace content { |
| 26 | 18 |
| 27 // TODO(akalin): Remove this block once rlz is updated to use | |
| 28 // url_fetcher.h from net/. | |
| 29 #ifdef RLZ_LIB_FINANCIAL_PING_H_ | |
| 30 | |
| 31 namespace URLFetcher { | |
| 32 | |
| 33 CONTENT_EXPORT net::URLFetcher* Create( | |
| 34 const GURL& url, | |
| 35 net::URLFetcher::RequestType request_type, | |
| 36 net::URLFetcherDelegate* d); | |
| 37 | |
| 38 } // namespace URLFetcher | |
| 39 | |
| 40 #endif // RLZ_LIB_FINANCIAL_PING_H_ | |
| 41 | |
| 42 // Mark URLRequests started by the URLFetcher to stem from the given render | 19 // Mark URLRequests started by the URLFetcher to stem from the given render |
| 43 // view. | 20 // view. |
| 44 CONTENT_EXPORT void AssociateURLFetcherWithRenderView( | 21 CONTENT_EXPORT void AssociateURLFetcherWithRenderView( |
| 45 net::URLFetcher* url_fetcher, | 22 net::URLFetcher* url_fetcher, |
| 46 const GURL& first_party_for_cookies, | 23 const GURL& first_party_for_cookies, |
| 47 int render_process_id, | 24 int render_process_id, |
| 48 int render_view_id); | 25 int render_view_id); |
| 49 | 26 |
| 50 } // namespace content | 27 } // namespace content |
| 51 | 28 |
| 52 #endif // CONTENT_PUBLIC_COMMON_URL_FETCHER_H_ | 29 #endif // CONTENT_PUBLIC_COMMON_URL_FETCHER_H_ |
| OLD | NEW |