Chromium Code Reviews| 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 COMPONENTS_PRECACHE_CORE_PRECACHE_FETCHER_H_ | 5 #ifndef COMPONENTS_PRECACHE_CORE_PRECACHE_FETCHER_H_ |
| 6 #define COMPONENTS_PRECACHE_CORE_PRECACHE_FETCHER_H_ | 6 #define COMPONENTS_PRECACHE_CORE_PRECACHE_FETCHER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 114 // The request context used when fetching URLs. | 114 // The request context used when fetching URLs. |
| 115 scoped_refptr<net::URLRequestContextGetter> request_context_; | 115 scoped_refptr<net::URLRequestContextGetter> request_context_; |
| 116 | 116 |
| 117 // The custom URL prefix to use when fetching manifests. If not provided, the | 117 // The custom URL prefix to use when fetching manifests. If not provided, the |
| 118 // default flag-specified prefix will be used. | 118 // default flag-specified prefix will be used. |
| 119 const std::string manifest_url_prefix_; | 119 const std::string manifest_url_prefix_; |
| 120 | 120 |
| 121 // Non-owning pointer. Should not be NULL. | 121 // Non-owning pointer. Should not be NULL. |
| 122 PrecacheDelegate* precache_delegate_; | 122 PrecacheDelegate* precache_delegate_; |
| 123 | 123 |
| 124 // Tally of the total number of bytes received from URL fetches, including | |
| 125 // config, manifests, and resources. | |
| 126 int total_response_bytes_; | |
|
bengr
2015/06/30 19:26:19
Are we concerned about overflow?
twifkak
2015/06/30 20:23:50
An int should be able to represent up to ~2G, so I
| |
| 127 | |
| 124 scoped_ptr<Fetcher> fetcher_; | 128 scoped_ptr<Fetcher> fetcher_; |
| 125 | 129 |
| 130 int num_manifest_urls_to_fetch_; | |
| 126 std::list<GURL> manifest_urls_to_fetch_; | 131 std::list<GURL> manifest_urls_to_fetch_; |
| 127 std::list<GURL> resource_urls_to_fetch_; | 132 std::list<GURL> resource_urls_to_fetch_; |
| 128 | 133 |
| 129 DISALLOW_COPY_AND_ASSIGN(PrecacheFetcher); | 134 DISALLOW_COPY_AND_ASSIGN(PrecacheFetcher); |
| 130 }; | 135 }; |
| 131 | 136 |
| 132 } // namespace precache | 137 } // namespace precache |
| 133 | 138 |
| 134 #endif // COMPONENTS_PRECACHE_CORE_PRECACHE_FETCHER_H_ | 139 #endif // COMPONENTS_PRECACHE_CORE_PRECACHE_FETCHER_H_ |
| OLD | NEW |