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

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

Issue 398903002: Plumb redirect info out of net, through content, and into child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unnecessary include Created 6 years, 5 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 | Annotate | Revision Log
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // a failure. Your call to this method will be ignored if your request is 116 // a failure. Your call to this method will be ignored if your request is
117 // already considered a failure based on the HTTP response code or response 117 // already considered a failure based on the HTTP response code or response
118 // headers. 118 // headers.
119 void ReceivedContentWasMalformed(); 119 void ReceivedContentWasMalformed();
120 bool GetResponseAsString(std::string* out_response_string) const; 120 bool GetResponseAsString(std::string* out_response_string) const;
121 bool GetResponseAsFilePath(bool take_ownership, 121 bool GetResponseAsFilePath(bool take_ownership,
122 base::FilePath* out_response_path); 122 base::FilePath* out_response_path);
123 123
124 // Overridden from URLRequest::Delegate: 124 // Overridden from URLRequest::Delegate:
125 virtual void OnReceivedRedirect(URLRequest* request, 125 virtual void OnReceivedRedirect(URLRequest* request,
126 const GURL& new_url, 126 const RedirectInfo& redirect_info,
127 bool* defer_redirect) OVERRIDE; 127 bool* defer_redirect) OVERRIDE;
128 virtual void OnResponseStarted(URLRequest* request) OVERRIDE; 128 virtual void OnResponseStarted(URLRequest* request) OVERRIDE;
129 virtual void OnReadCompleted(URLRequest* request, 129 virtual void OnReadCompleted(URLRequest* request,
130 int bytes_read) OVERRIDE; 130 int bytes_read) OVERRIDE;
131 virtual void OnCertificateRequested( 131 virtual void OnCertificateRequested(
132 URLRequest* request, 132 URLRequest* request,
133 SSLCertRequestInfo* cert_request_info) OVERRIDE; 133 SSLCertRequestInfo* cert_request_info) OVERRIDE;
134 134
135 URLFetcherDelegate* delegate() const { return delegate_; } 135 URLFetcherDelegate* delegate() const { return delegate_; }
136 static void CancelAll(); 136 static void CancelAll();
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 base::debug::StackTrace stack_trace_; 316 base::debug::StackTrace stack_trace_;
317 317
318 static base::LazyInstance<Registry> g_registry; 318 static base::LazyInstance<Registry> g_registry;
319 319
320 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); 320 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore);
321 }; 321 };
322 322
323 } // namespace net 323 } // namespace net
324 324
325 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_ 325 #endif // NET_URL_REQUEST_URL_FETCHER_CORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698