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

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

Issue 2265873002: Adjust callers and networking delegates in net/ to modified APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@URLRequestRead
Patch Set: rebased on top of URLRequest::Read CL Created 4 years, 3 months 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/sdch_dictionary_fetcher.cc ('k') | net/url_request/url_fetcher_core.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_CORE_H_ 5 #ifndef NET_URL_REQUEST_URL_FETCHER_CORE_H_
6 #define NET_URL_REQUEST_URL_FETCHER_CORE_H_ 6 #define NET_URL_REQUEST_URL_FETCHER_CORE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // headers. 129 // headers.
130 void ReceivedContentWasMalformed(); 130 void ReceivedContentWasMalformed();
131 bool GetResponseAsString(std::string* out_response_string) const; 131 bool GetResponseAsString(std::string* out_response_string) const;
132 bool GetResponseAsFilePath(bool take_ownership, 132 bool GetResponseAsFilePath(bool take_ownership,
133 base::FilePath* out_response_path); 133 base::FilePath* out_response_path);
134 134
135 // Overridden from URLRequest::Delegate: 135 // Overridden from URLRequest::Delegate:
136 void OnReceivedRedirect(URLRequest* request, 136 void OnReceivedRedirect(URLRequest* request,
137 const RedirectInfo& redirect_info, 137 const RedirectInfo& redirect_info,
138 bool* defer_redirect) override; 138 bool* defer_redirect) override;
139 void OnResponseStarted(URLRequest* request) override; 139 void OnResponseStarted(URLRequest* request, int net_error) override;
140 void OnReadCompleted(URLRequest* request, int bytes_read) override; 140 void OnReadCompleted(URLRequest* request, int bytes_read) override;
141 void OnCertificateRequested(URLRequest* request, 141 void OnCertificateRequested(URLRequest* request,
142 SSLCertRequestInfo* cert_request_info) override; 142 SSLCertRequestInfo* cert_request_info) override;
143 143
144 // Overridden from URLRequestContextGetterObserver: 144 // Overridden from URLRequestContextGetterObserver:
145 void OnContextShuttingDown() override; 145 void OnContextShuttingDown() override;
146 146
147 URLFetcherDelegate* delegate() const { return delegate_; } 147 URLFetcherDelegate* delegate() const { return delegate_; }
148 static void CancelAll(); 148 static void CancelAll();
149 static int GetNumFetcherCores(); 149 static int GetNumFetcherCores();
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 int64_t total_response_bytes_; 345 int64_t total_response_bytes_;
346 346
347 static base::LazyInstance<Registry> g_registry; 347 static base::LazyInstance<Registry> g_registry;
348 348
349 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); 349 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore);
350 }; 350 };
351 351
352 } // namespace net 352 } // namespace net
353 353
354 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ 354 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_
OLDNEW
« no previous file with comments | « net/url_request/sdch_dictionary_fetcher.cc ('k') | net/url_request/url_fetcher_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698