Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_IMAGE_FETCHER_IMAGE_DATA_FETCHER_H_ | 5 #ifndef COMPONENTS_IMAGE_FETCHER_IMAGE_DATA_FETCHER_H_ |
| 6 #define COMPONENTS_IMAGE_FETCHER_IMAGE_DATA_FETCHER_H_ | 6 #define COMPONENTS_IMAGE_FETCHER_IMAGE_DATA_FETCHER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 42 | 42 |
| 43 // Method inherited from URLFetcherDelegate | 43 // Method inherited from URLFetcherDelegate |
| 44 void OnURLFetchComplete(const net::URLFetcher* source) override; | 44 void OnURLFetchComplete(const net::URLFetcher* source) override; |
| 45 | 45 |
| 46 // All active image url requests. | 46 // All active image url requests. |
| 47 std::map<const net::URLFetcher*, std::unique_ptr<ImageDataFetcherRequest>> | 47 std::map<const net::URLFetcher*, std::unique_ptr<ImageDataFetcherRequest>> |
| 48 pending_requests_; | 48 pending_requests_; |
| 49 | 49 |
| 50 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; | 50 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; |
| 51 | 51 |
| 52 // The next id to use for a newly created URLFetcher. Each URLFetcher gets an | |
|
Bernhard Bauer
2016/06/20 13:36:15
Nit: I would capitalize "ID" (you're not talking a
markusheintz_
2016/06/20 14:30:17
Done.
| |
| 53 // id when it id created. The |url_fetcher_id_| is incremeted by one for each | |
|
Bernhard Bauer
2016/06/20 13:36:15
"[...] when it is created". Also, "incremented".
markusheintz_
2016/06/20 14:30:16
Done.
| |
| 54 // newly created URLFetcher. The URLFetcher ID can be used during testing to | |
| 55 // get individual URLFetchers and modify their state. Outside of tests this ID | |
| 56 // is not used. | |
| 57 int url_fetcher_id_; | |
|
Marc Treib
2016/06/20 14:47:29
next_url_fetcher_id_ ?
markusheintz_
2016/06/20 15:06:52
Done.
| |
| 58 | |
| 52 DISALLOW_COPY_AND_ASSIGN(ImageDataFetcher); | 59 DISALLOW_COPY_AND_ASSIGN(ImageDataFetcher); |
| 53 }; | 60 }; |
| 54 | 61 |
| 55 } // namespace image_fetcher | 62 } // namespace image_fetcher |
| 56 | 63 |
| 57 #endif // COMPONENTS_IMAGE_FETCHER_IMAGE_DATA_FETCHER_H_ | 64 #endif // COMPONENTS_IMAGE_FETCHER_IMAGE_DATA_FETCHER_H_ |
| OLD | NEW |