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

Side by Side Diff: chrome/service/cloud_print/cloud_print_url_fetcher.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
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 CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_URL_FETCHER_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_URL_FETCHER_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_URL_FETCHER_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_URL_FETCHER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 public: 66 public:
67 // Override this to handle the raw response as it is available. No response 67 // Override this to handle the raw response as it is available. No response
68 // error checking is done before this method is called. If the delegate 68 // error checking is done before this method is called. If the delegate
69 // returns CONTINUE_PROCESSING, we will then check for network 69 // returns CONTINUE_PROCESSING, we will then check for network
70 // errors. Most implementations will not override this. 70 // errors. Most implementations will not override this.
71 virtual ResponseAction HandleRawResponse( 71 virtual ResponseAction HandleRawResponse(
72 const net::URLFetcher* source, 72 const net::URLFetcher* source,
73 const GURL& url, 73 const GURL& url,
74 const net::URLRequestStatus& status, 74 const net::URLRequestStatus& status,
75 int response_code, 75 int response_code,
76 const net::ResponseCookies& cookies,
77 const std::string& data); 76 const std::string& data);
78 77
79 // This will be invoked only if HandleRawResponse returns 78 // This will be invoked only if HandleRawResponse returns
80 // CONTINUE_PROCESSING AND if there are no network errors and the HTTP 79 // CONTINUE_PROCESSING AND if there are no network errors and the HTTP
81 // response code is 200. The delegate implementation returns 80 // response code is 200. The delegate implementation returns
82 // CONTINUE_PROCESSING if it does not want to handle the raw data itself. 81 // CONTINUE_PROCESSING if it does not want to handle the raw data itself.
83 // Handling the raw data is needed when the expected response is NOT JSON 82 // Handling the raw data is needed when the expected response is NOT JSON
84 // (like in the case of a print ticket response or a print job download 83 // (like in the case of a print ticket response or a print job download
85 // response). 84 // response).
86 virtual ResponseAction HandleRawData(const net::URLFetcher* source, 85 virtual ResponseAction HandleRawData(const net::URLFetcher* source,
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 std::string post_data_mime_type_; 162 std::string post_data_mime_type_;
164 std::string post_data_; 163 std::string post_data_;
165 164
166 RequestType type_; 165 RequestType type_;
167 base::Time start_time_; 166 base::Time start_time_;
168 }; 167 };
169 168
170 } // namespace cloud_print 169 } // namespace cloud_print
171 170
172 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_URL_FETCHER_H_ 171 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_URL_FETCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/signin/inline_login_ui_browsertest.cc ('k') | chrome/service/cloud_print/cloud_print_url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698