OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UPDATER_EXTENSION_DOWNLOADER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // These counters are bumped as extensions are added to be fetched. They | 78 // These counters are bumped as extensions are added to be fetched. They |
79 // are then recorded as UMA metrics when all the extensions have been added. | 79 // are then recorded as UMA metrics when all the extensions have been added. |
80 struct URLStats { | 80 struct URLStats { |
81 URLStats() | 81 URLStats() |
82 : no_url_count(0), | 82 : no_url_count(0), |
83 google_url_count(0), | 83 google_url_count(0), |
84 other_url_count(0), | 84 other_url_count(0), |
85 extension_count(0), | 85 extension_count(0), |
86 theme_count(0), | 86 theme_count(0), |
87 app_count(0), | 87 app_count(0), |
| 88 platform_app_count(0), |
88 pending_count(0) {} | 89 pending_count(0) {} |
89 | 90 |
90 int no_url_count, google_url_count, other_url_count; | 91 int no_url_count, google_url_count, other_url_count; |
91 int extension_count, theme_count, app_count, pending_count; | 92 int extension_count, theme_count, app_count, platform_app_count, |
| 93 pending_count; |
92 }; | 94 }; |
93 | 95 |
94 // We need to keep track of some information associated with a url | 96 // We need to keep track of some information associated with a url |
95 // when doing a fetch. | 97 // when doing a fetch. |
96 struct ExtensionFetch { | 98 struct ExtensionFetch { |
97 ExtensionFetch(); | 99 ExtensionFetch(); |
98 ExtensionFetch(const std::string& id, const GURL& url, | 100 ExtensionFetch(const std::string& id, const GURL& url, |
99 const std::string& package_hash, const std::string& version); | 101 const std::string& package_hash, const std::string& version); |
100 ~ExtensionFetch(); | 102 ~ExtensionFetch(); |
101 | 103 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 198 |
197 // Maps an extension-id to its PingResult data. | 199 // Maps an extension-id to its PingResult data. |
198 std::map<std::string, ExtensionDownloaderDelegate::PingResult> ping_results_; | 200 std::map<std::string, ExtensionDownloaderDelegate::PingResult> ping_results_; |
199 | 201 |
200 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloader); | 202 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloader); |
201 }; | 203 }; |
202 | 204 |
203 } // namespace extensions | 205 } // namespace extensions |
204 | 206 |
205 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ | 207 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ |
OLD | NEW |