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

Side by Side Diff: net/url_request/url_fetcher.h

Issue 732423002: Update from chromium https://crrev.com/304586 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 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 | « net/url_request/test_url_fetcher_factory.cc ('k') | net/url_request/url_fetcher.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 NET_URL_REQUEST_URL_FETCHER_H_ 5 #ifndef NET_URL_REQUEST_URL_FETCHER_H_
6 #define NET_URL_REQUEST_URL_FETCHER_H_ 6 #define NET_URL_REQUEST_URL_FETCHER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 URLFetcherDelegate* d); 112 URLFetcherDelegate* d);
113 113
114 // Cancels all existing URLFetchers. Will notify the URLFetcherDelegates. 114 // Cancels all existing URLFetchers. Will notify the URLFetcherDelegates.
115 // Note that any new URLFetchers created while this is running will not be 115 // Note that any new URLFetchers created while this is running will not be
116 // cancelled. Typically, one would call this in the CleanUp() method of an IO 116 // cancelled. Typically, one would call this in the CleanUp() method of an IO
117 // thread, so that no new URLRequests would be able to start on the IO thread 117 // thread, so that no new URLRequests would be able to start on the IO thread
118 // anyway. This doesn't prevent new URLFetchers from trying to post to the IO 118 // anyway. This doesn't prevent new URLFetchers from trying to post to the IO
119 // thread though, even though the task won't ever run. 119 // thread though, even though the task won't ever run.
120 static void CancelAll(); 120 static void CancelAll();
121 121
122 // Normally interception is disabled for URLFetcher, but you can use this
123 // to enable it for tests. Also see ScopedURLFetcherFactory for another way
124 // of testing code that uses an URLFetcher.
125 static void SetEnableInterceptionForTests(bool enabled);
126
127 // Normally, URLFetcher will abort loads that request SSL client certificate 122 // Normally, URLFetcher will abort loads that request SSL client certificate
128 // authentication, but this method may be used to cause URLFetchers to ignore 123 // authentication, but this method may be used to cause URLFetchers to ignore
129 // requests for client certificates and continue anonymously. Because such 124 // requests for client certificates and continue anonymously. Because such
130 // behaviour affects the URLRequestContext's shared network state and socket 125 // behaviour affects the URLRequestContext's shared network state and socket
131 // pools, it should only be used for testing. 126 // pools, it should only be used for testing.
132 static void SetIgnoreCertificateRequests(bool ignored); 127 static void SetIgnoreCertificateRequests(bool ignored);
133 128
134 // Sets data only needed by POSTs. All callers making POST requests should 129 // Sets data only needed by POSTs. All callers making POST requests should
135 // call one of the SetUpload* methods before the request is started. 130 // call one of the SetUpload* methods before the request is started.
136 // |upload_content_type| is the MIME type of the content, while 131 // |upload_content_type| is the MIME type of the content, while
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 // be removed once the URLFetcher is destroyed. User should not take 301 // be removed once the URLFetcher is destroyed. User should not take
307 // ownership more than once, or call this method after taking ownership. 302 // ownership more than once, or call this method after taking ownership.
308 virtual bool GetResponseAsFilePath( 303 virtual bool GetResponseAsFilePath(
309 bool take_ownership, 304 bool take_ownership,
310 base::FilePath* out_response_path) const = 0; 305 base::FilePath* out_response_path) const = 0;
311 }; 306 };
312 307
313 } // namespace net 308 } // namespace net
314 309
315 #endif // NET_URL_REQUEST_URL_FETCHER_H_ 310 #endif // NET_URL_REQUEST_URL_FETCHER_H_
OLDNEW
« no previous file with comments | « net/url_request/test_url_fetcher_factory.cc ('k') | net/url_request/url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698