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

Side by Side Diff: chrome/browser/extensions/updater/extension_downloader.h

Issue 79363004: Merge 235370 "Destroy ExternalCacheDispatcher when last External..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1700/src/
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 // Send a notification that an update was found for |id| that we'll 190 // Send a notification that an update was found for |id| that we'll
191 // attempt to download. 191 // attempt to download.
192 void NotifyUpdateFound(const std::string& id, const std::string& version); 192 void NotifyUpdateFound(const std::string& id, const std::string& version);
193 193
194 // The delegate that receives the crx files downloaded by the 194 // The delegate that receives the crx files downloaded by the
195 // ExtensionDownloader, and that fills in optional ping and update url data. 195 // ExtensionDownloader, and that fills in optional ping and update url data.
196 ExtensionDownloaderDelegate* delegate_; 196 ExtensionDownloaderDelegate* delegate_;
197 197
198 // The request context to use for the URLFetchers. 198 // The request context to use for the URLFetchers.
199 net::URLRequestContextGetter* request_context_; 199 scoped_refptr<net::URLRequestContextGetter> request_context_;
200 200
201 // Used to create WeakPtrs to |this|. 201 // Used to create WeakPtrs to |this|.
202 base::WeakPtrFactory<ExtensionDownloader> weak_ptr_factory_; 202 base::WeakPtrFactory<ExtensionDownloader> weak_ptr_factory_;
203 203
204 // Collects UMA samples that are reported when ReportStats() is called. 204 // Collects UMA samples that are reported when ReportStats() is called.
205 URLStats url_stats_; 205 URLStats url_stats_;
206 206
207 // List of data on fetches we're going to do. We limit the number of 207 // List of data on fetches we're going to do. We limit the number of
208 // extensions grouped together in one batch to avoid running into the limits 208 // extensions grouped together in one batch to avoid running into the limits
209 // on the length of http GET requests, so there might be multiple 209 // on the length of http GET requests, so there might be multiple
(...skipping 13 matching lines...) Expand all
223 223
224 // Maps an extension-id to its PingResult data. 224 // Maps an extension-id to its PingResult data.
225 std::map<std::string, ExtensionDownloaderDelegate::PingResult> ping_results_; 225 std::map<std::string, ExtensionDownloaderDelegate::PingResult> ping_results_;
226 226
227 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloader); 227 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloader);
228 }; 228 };
229 229
230 } // namespace extensions 230 } // namespace extensions
231 231
232 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_ 232 #endif // CHROME_BROWSER_EXTENSIONS_UPDATER_EXTENSION_DOWNLOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698