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

Unified Diff: chrome/browser/component_updater/crx_update_item.h

Issue 25713007: Component updater on-demand logic with ResourceThrottle (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/component_updater/crx_update_item.h
===================================================================
--- chrome/browser/component_updater/crx_update_item.h (revision 231370)
+++ chrome/browser/component_updater/crx_update_item.h (working copy)
@@ -9,10 +9,13 @@
#include <vector>
#include "base/basictypes.h"
+#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "base/version.h"
#include "chrome/browser/component_updater/component_updater_service.h"
+class CUResourceThrottle;
+
// This is the one and only per-item state structure. Designed to be hosted
// in a std::vector or a std::list. The two main members are |component|
// which is supplied by the the component updater client and |status| which
@@ -102,6 +105,8 @@
int diff_error_code;
int diff_extra_code1;
+ std::vector<base::WeakPtr<CUResourceThrottle>> throttles;
Sorin Jianu 2013/10/31 18:43:58 what is the opinion in the codebase relative to >>
cpu_(ooo_6.6-7.5) 2013/10/31 21:36:08 Good catch. VS can handle but did not compile on *
+
CrxUpdateItem();
~CrxUpdateItem();

Powered by Google App Engine
This is Rietveld 408576698