| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // ProxyScriptFetcher is an async interface for fetching a proxy auto config | 5 // ProxyScriptFetcher is an async interface for fetching a proxy auto config |
| 6 // script. It is specific to fetching a PAC script; enforces timeout, max-size, | 6 // script. It is specific to fetching a PAC script; enforces timeout, max-size, |
| 7 // status code. | 7 // status code. |
| 8 | 8 |
| 9 #ifndef NET_PROXY_PROXY_SCRIPT_FETCHER_H_ | 9 #ifndef NET_PROXY_PROXY_SCRIPT_FETCHER_H_ |
| 10 #define NET_PROXY_PROXY_SCRIPT_FETCHER_H_ | 10 #define NET_PROXY_PROXY_SCRIPT_FETCHER_H_ |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // | 41 // |
| 42 // Only one fetch is allowed to be outstanding at a time. | 42 // Only one fetch is allowed to be outstanding at a time. |
| 43 virtual int Fetch(const GURL& url, string16* utf16_text, | 43 virtual int Fetch(const GURL& url, string16* utf16_text, |
| 44 CompletionCallback* callback) = 0; | 44 CompletionCallback* callback) = 0; |
| 45 | 45 |
| 46 // Aborts the in-progress fetch (if any). | 46 // Aborts the in-progress fetch (if any). |
| 47 virtual void Cancel() = 0; | 47 virtual void Cancel() = 0; |
| 48 | 48 |
| 49 // Returns the request context that this fetcher uses to issue downloads, | 49 // Returns the request context that this fetcher uses to issue downloads, |
| 50 // or NULL. | 50 // or NULL. |
| 51 virtual URLRequestContext* GetRequestContext() { return NULL; } | 51 virtual URLRequestContext* GetRequestContext() = 0; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace net | 54 } // namespace net |
| 55 | 55 |
| 56 #endif // NET_PROXY_PROXY_SCRIPT_FETCHER_H_ | 56 #endif // NET_PROXY_PROXY_SCRIPT_FETCHER_H_ |
| OLD | NEW |