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

Side by Side Diff: net/proxy/proxy_script_fetcher.h

Issue 8985012: base::Bind: Convert net/proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more include. Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « net/proxy/proxy_script_decider_unittest.cc ('k') | net/proxy/proxy_script_fetcher_impl.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 28 matching lines...) Expand all
39 // ERR_TIMED_OUT -- the fetch took too long to complete. 39 // ERR_TIMED_OUT -- the fetch took too long to complete.
40 // ERR_FILE_TOO_BIG -- the response's body was too large. 40 // ERR_FILE_TOO_BIG -- the response's body was too large.
41 // ERR_PAC_STATUS_NOT_OK -- non-200 HTTP status code. 41 // ERR_PAC_STATUS_NOT_OK -- non-200 HTTP status code.
42 // ERR_NOT_IMPLEMENTED -- the response required authentication. 42 // ERR_NOT_IMPLEMENTED -- the response required authentication.
43 // 43 //
44 // If the request is cancelled (either using the "Cancel()" method or by 44 // If the request is cancelled (either using the "Cancel()" method or by
45 // deleting |this|), then no callback is invoked. 45 // deleting |this|), then no callback is invoked.
46 // 46 //
47 // Only one fetch is allowed to be outstanding at a time. 47 // Only one fetch is allowed to be outstanding at a time.
48 virtual int Fetch(const GURL& url, string16* utf16_text, 48 virtual int Fetch(const GURL& url, string16* utf16_text,
49 OldCompletionCallback* callback) = 0; 49 const net::CompletionCallback& callback) = 0;
50 50
51 // Aborts the in-progress fetch (if any). 51 // Aborts the in-progress fetch (if any).
52 virtual void Cancel() = 0; 52 virtual void Cancel() = 0;
53 53
54 // Returns the request context that this fetcher uses to issue downloads, 54 // Returns the request context that this fetcher uses to issue downloads,
55 // or NULL. 55 // or NULL.
56 virtual URLRequestContext* GetRequestContext() const = 0; 56 virtual URLRequestContext* GetRequestContext() const = 0;
57 }; 57 };
58 58
59 } // namespace net 59 } // namespace net
60 60
61 #endif // NET_PROXY_PROXY_SCRIPT_FETCHER_H_ 61 #endif // NET_PROXY_PROXY_SCRIPT_FETCHER_H_
OLDNEW
« no previous file with comments | « net/proxy/proxy_script_decider_unittest.cc ('k') | net/proxy/proxy_script_fetcher_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698