| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_URL_OPERAT
ION_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_URL_OPERAT
ION_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_URL_OPERAT
ION_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_URL_OPERAT
ION_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "chrome/browser/extensions/api/image_writer_private/operation.h" | 10 #include "chrome/browser/extensions/api/image_writer_private/operation.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void VerifyDownloadCompare(const base::Closure& continuation, | 64 void VerifyDownloadCompare(const base::Closure& continuation, |
| 65 const std::string& download_hash); | 65 const std::string& download_hash); |
| 66 void VerifyDownloadComplete(const base::Closure& continuation); | 66 void VerifyDownloadComplete(const base::Closure& continuation); |
| 67 | 67 |
| 68 // Arguments | 68 // Arguments |
| 69 net::URLRequestContextGetter* request_context_; | 69 net::URLRequestContextGetter* request_context_; |
| 70 GURL url_; | 70 GURL url_; |
| 71 const std::string hash_; | 71 const std::string hash_; |
| 72 | 72 |
| 73 // Local state | 73 // Local state |
| 74 scoped_ptr<net::URLFetcher> url_fetcher_; | 74 std::unique_ptr<net::URLFetcher> url_fetcher_; |
| 75 base::Closure download_continuation_; | 75 base::Closure download_continuation_; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace image_writer | 78 } // namespace image_writer |
| 79 } // namespace extensions | 79 } // namespace extensions |
| 80 | 80 |
| 81 #endif // CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_URL_OPE
RATION_H_ | 81 #endif // CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_URL_OPE
RATION_H_ |
| OLD | NEW |