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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 std::string id; | 128 std::string id; |
129 GURL url; | 129 GURL url; |
130 std::string package_hash; | 130 std::string package_hash; |
131 std::string version; | 131 std::string version; |
132 std::set<int> request_ids; | 132 std::set<int> request_ids; |
133 }; | 133 }; |
134 | 134 |
135 // Helper for AddExtension() and AddPendingExtension(). | 135 // Helper for AddExtension() and AddPendingExtension(). |
136 bool AddExtensionData(const std::string& id, | 136 bool AddExtensionData(const std::string& id, |
137 const Version& version, | 137 const Version& version, |
138 Extension::Type extension_type, | 138 Manifest::Type extension_type, |
139 const GURL& extension_update_url, | 139 const GURL& extension_update_url, |
140 const std::string& update_url_data, | 140 const std::string& update_url_data, |
141 int request_id); | 141 int request_id); |
142 | 142 |
143 // Adds all recorded stats taken so far to histogram counts. | 143 // Adds all recorded stats taken so far to histogram counts. |
144 void ReportStats() const; | 144 void ReportStats() const; |
145 | 145 |
146 // Begins an update check. | 146 // Begins an update check. |
147 void StartUpdateCheck(scoped_ptr<ManifestFetchData> fetch_data); | 147 void StartUpdateCheck(scoped_ptr<ManifestFetchData> fetch_data); |
148 | 148 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 225 |
226 // Maps an extension-id to its PingResult data. | 226 // Maps an extension-id to its PingResult data. |
227 std::map<std::string, ExtensionDownloaderDelegate::PingResult> ping_results_; | 227 std::map<std::string, ExtensionDownloaderDelegate::PingResult> ping_results_; |
228 | 228 |
229 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloader); | 229 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloader); |
230 }; | 230 }; |
231 | 231 |
232 } // namespace extensions | 232 } // namespace extensions |
233 | 233 |
234 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ | 234 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ |
OLD | NEW |