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

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

Issue 2035293002: Remove URLRequest::GetResponseCookies and URLRequestJob::GetResponseCookies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments rogerta Created 4 years, 6 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/url_fetcher.h ('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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void SaveResponseWithWriter( 112 void SaveResponseWithWriter(
113 std::unique_ptr<URLFetcherResponseWriter> response_writer); 113 std::unique_ptr<URLFetcherResponseWriter> response_writer);
114 HttpResponseHeaders* GetResponseHeaders() const; 114 HttpResponseHeaders* GetResponseHeaders() const;
115 HostPortPair GetSocketAddress() const; 115 HostPortPair GetSocketAddress() const;
116 bool WasFetchedViaProxy() const; 116 bool WasFetchedViaProxy() const;
117 bool WasCached() const; 117 bool WasCached() const;
118 const GURL& GetOriginalURL() const; 118 const GURL& GetOriginalURL() const;
119 const GURL& GetURL() const; 119 const GURL& GetURL() const;
120 const URLRequestStatus& GetStatus() const; 120 const URLRequestStatus& GetStatus() const;
121 int GetResponseCode() const; 121 int GetResponseCode() const;
122 const ResponseCookies& GetCookies() const;
123 int64_t GetReceivedResponseContentLength() const; 122 int64_t GetReceivedResponseContentLength() const;
124 int64_t GetTotalReceivedBytes() const; 123 int64_t GetTotalReceivedBytes() const;
125 // Reports that the received content was malformed (i.e. failed parsing 124 // Reports that the received content was malformed (i.e. failed parsing
126 // or validation). This makes the throttling logic that does exponential 125 // or validation). This makes the throttling logic that does exponential
127 // back-off when servers are having problems treat the current request as 126 // back-off when servers are having problems treat the current request as
128 // a failure. Your call to this method will be ignored if your request is 127 // a failure. Your call to this method will be ignored if your request is
129 // already considered a failure based on the HTTP response code or response 128 // already considered a failure based on the HTTP response code or response
130 // headers. 129 // headers.
131 void ReceivedContentWasMalformed(); 130 void ReceivedContentWasMalformed();
132 bool GetResponseAsString(std::string* out_response_string) const; 131 bool GetResponseAsString(std::string* out_response_string) const;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 int load_flags_; // Flags for the load operation 242 int load_flags_; // Flags for the load operation
244 int response_code_; // HTTP status code for the request 243 int response_code_; // HTTP status code for the request
245 scoped_refptr<IOBuffer> buffer_; 244 scoped_refptr<IOBuffer> buffer_;
246 // Read buffer 245 // Read buffer
247 scoped_refptr<URLRequestContextGetter> request_context_getter_; 246 scoped_refptr<URLRequestContextGetter> request_context_getter_;
248 // Cookie/cache info for the request 247 // Cookie/cache info for the request
249 GURL initiator_; // The request's initiator 248 GURL initiator_; // The request's initiator
250 // The user data to add to each newly-created URLRequest. 249 // The user data to add to each newly-created URLRequest.
251 const void* url_request_data_key_; 250 const void* url_request_data_key_;
252 URLFetcher::CreateDataCallback url_request_create_data_callback_; 251 URLFetcher::CreateDataCallback url_request_create_data_callback_;
253 ResponseCookies cookies_; // Response cookies
254 HttpRequestHeaders extra_request_headers_; 252 HttpRequestHeaders extra_request_headers_;
255 scoped_refptr<HttpResponseHeaders> response_headers_; 253 scoped_refptr<HttpResponseHeaders> response_headers_;
256 bool was_fetched_via_proxy_; 254 bool was_fetched_via_proxy_;
257 bool was_cached_; 255 bool was_cached_;
258 int64_t received_response_content_length_; 256 int64_t received_response_content_length_;
259 int64_t total_received_bytes_; 257 int64_t total_received_bytes_;
260 HostPortPair socket_address_; 258 HostPortPair socket_address_;
261 259
262 bool upload_content_set_; // SetUploadData has been called 260 bool upload_content_set_; // SetUploadData has been called
263 std::string upload_content_; // HTTP POST payload 261 std::string upload_content_; // HTTP POST payload
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 int64_t total_response_bytes_; 345 int64_t total_response_bytes_;
348 346
349 static base::LazyInstance<Registry> g_registry; 347 static base::LazyInstance<Registry> g_registry;
350 348
351 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore); 349 DISALLOW_COPY_AND_ASSIGN(URLFetcherCore);
352 }; 350 };
353 351
354 } // namespace net 352 } // namespace net
355 353
356 #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/url_fetcher.h ('k') | net/url_request/url_fetcher_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698