Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: components/precache/core/precache_fetcher.h

Issue 1212773002: Add prefetch UMA metrics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/precache/core/precache_fetcher.cc » ('j') | components/precache/core/precache_fetcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698