OLD | NEW |
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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 int max_retries, | 152 int max_retries, |
153 const std::string& post_data_mime_type, | 153 const std::string& post_data_mime_type, |
154 const std::string& post_data, | 154 const std::string& post_data, |
155 const std::string& additional_headers); | 155 const std::string& additional_headers); |
156 void SetupRequestHeaders(); | 156 void SetupRequestHeaders(); |
157 static CloudPrintURLFetcherFactory* factory(); | 157 static CloudPrintURLFetcherFactory* factory(); |
158 | 158 |
159 scoped_ptr<net::URLFetcher> request_; | 159 scoped_ptr<net::URLFetcher> request_; |
160 Delegate* delegate_; | 160 Delegate* delegate_; |
161 int num_retries_; | 161 int num_retries_; |
162 net::URLFetcher::RequestType request_type_; | |
163 std::string additional_headers_; | 162 std::string additional_headers_; |
164 std::string post_data_mime_type_; | 163 std::string post_data_mime_type_; |
165 std::string post_data_; | 164 std::string post_data_; |
166 | 165 |
167 RequestType type_; | 166 RequestType type_; |
168 base::Time start_time_; | 167 base::Time start_time_; |
169 }; | 168 }; |
170 | 169 |
171 typedef CloudPrintURLFetcher::Delegate CloudPrintURLFetcherDelegate; | 170 typedef CloudPrintURLFetcher::Delegate CloudPrintURLFetcherDelegate; |
172 | 171 |
173 } // namespace cloud_print | 172 } // namespace cloud_print |
174 | 173 |
175 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_URL_FETCHER_H_ | 174 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_URL_FETCHER_H_ |
OLD | NEW |