| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "chrome/common/net/url_fetcher.h" | 12 #include "content/common/url_fetcher.h" |
| 13 | 13 |
| 14 class DictionaryValue; | 14 class DictionaryValue; |
| 15 class GURL; | 15 class GURL; |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 class URLRequestStatus; | 18 class URLRequestStatus; |
| 19 } // namespace net | 19 } // namespace net |
| 20 | 20 |
| 21 // A wrapper around URLFetcher for CloudPrint. URLFetcher applies retry logic | 21 // A wrapper around URLFetcher for CloudPrint. URLFetcher applies retry logic |
| 22 // only on HTTP response codes >= 500. In the cloud print case, we want to | 22 // only on HTTP response codes >= 500. In the cloud print case, we want to |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 scoped_ptr<URLFetcher> request_; | 115 scoped_ptr<URLFetcher> request_; |
| 116 Delegate* delegate_; | 116 Delegate* delegate_; |
| 117 int num_retries_; | 117 int num_retries_; |
| 118 std::string additional_headers_; | 118 std::string additional_headers_; |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 typedef CloudPrintURLFetcher::Delegate CloudPrintURLFetcherDelegate; | 121 typedef CloudPrintURLFetcher::Delegate CloudPrintURLFetcherDelegate; |
| 122 | 122 |
| 123 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_URL_FETCHER_H_ | 123 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_URL_FETCHER_H_ |
| OLD | NEW |