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 "chrome/browser/extensions/api/image_writer_private/operation.h" | 8 #include "chrome/browser/extensions/api/image_writer_private/operation.h" |
9 #include "net/url_request/url_fetcher_delegate.h" | 9 #include "net/url_request/url_fetcher_delegate.h" |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 class URLFetcher; | 13 class URLFetcher; |
| 14 class URLRequestContextGetter; |
14 } // namespace net | 15 } // namespace net |
15 | 16 |
16 namespace extensions { | 17 namespace extensions { |
17 namespace image_writer { | 18 namespace image_writer { |
18 | 19 |
19 class OperationManager; | 20 class OperationManager; |
20 | 21 |
21 // Encapsulates a write of an image accessed via URL. | 22 // Encapsulates a write of an image accessed via URL. |
22 class WriteFromUrlOperation : public Operation, public net::URLFetcherDelegate { | 23 class WriteFromUrlOperation : public Operation, public net::URLFetcherDelegate { |
23 public: | 24 public: |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 70 |
70 // Local state | 71 // Local state |
71 scoped_ptr<net::URLFetcher> url_fetcher_; | 72 scoped_ptr<net::URLFetcher> url_fetcher_; |
72 base::Closure download_continuation_; | 73 base::Closure download_continuation_; |
73 }; | 74 }; |
74 | 75 |
75 } // namespace image_writer | 76 } // namespace image_writer |
76 } // namespace extensions | 77 } // namespace extensions |
77 | 78 |
78 #endif // CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_URL_OPE
RATION_H_ | 79 #endif // CHROME_BROWSER_EXTENSIONS_API_IMAGE_WRITER_PRIVATE_WRITE_FROM_URL_OPE
RATION_H_ |
OLD | NEW |