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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 // this fetch. | 159 // this fetch. |
160 int oauth2_attempt_count; | 160 int oauth2_attempt_count; |
161 }; | 161 }; |
162 | 162 |
163 // Helper for AddExtension() and AddPendingExtension(). | 163 // Helper for AddExtension() and AddPendingExtension(). |
164 bool AddExtensionData(const std::string& id, | 164 bool AddExtensionData(const std::string& id, |
165 const base::Version& version, | 165 const base::Version& version, |
166 Manifest::Type extension_type, | 166 Manifest::Type extension_type, |
167 const GURL& extension_update_url, | 167 const GURL& extension_update_url, |
168 const std::string& update_url_data, | 168 const std::string& update_url_data, |
169 int request_id, | 169 int request_id); |
170 bool force_update, | |
171 const std::string& install_source_override); | |
172 | 170 |
173 // Adds all recorded stats taken so far to histogram counts. | 171 // Adds all recorded stats taken so far to histogram counts. |
174 void ReportStats() const; | 172 void ReportStats() const; |
175 | 173 |
176 // Begins an update check. | 174 // Begins an update check. |
177 void StartUpdateCheck(scoped_ptr<ManifestFetchData> fetch_data); | 175 void StartUpdateCheck(scoped_ptr<ManifestFetchData> fetch_data); |
178 | 176 |
179 // Called by RequestQueue when a new manifest fetch request is started. | 177 // Called by RequestQueue when a new manifest fetch request is started. |
180 void CreateManifestFetcher(); | 178 void CreateManifestFetcher(); |
181 | 179 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 290 |
293 // A pending token fetch request. | 291 // A pending token fetch request. |
294 scoped_ptr<OAuth2TokenService::Request> access_token_request_; | 292 scoped_ptr<OAuth2TokenService::Request> access_token_request_; |
295 | 293 |
296 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloader); | 294 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloader); |
297 }; | 295 }; |
298 | 296 |
299 } // namespace extensions | 297 } // namespace extensions |
300 | 298 |
301 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ | 299 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ |
OLD | NEW |