Chromium Code Reviews

Unified Diff: chrome/browser/extensions/extension_prefs.h

Issue 1695018: Adding ExtensionPrefs methods for storing update-when-idle data.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_prefs.h
===================================================================
--- chrome/browser/extensions/extension_prefs.h (revision 45592)
+++ chrome/browser/extensions/extension_prefs.h (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -115,6 +115,27 @@
// extension is not present, NULL is returned.
ExtensionInfo* GetInstalledExtensionInfo(const std::string& extension_id);
+ // We've downloaded an updated .crx file for the extension, but are waiting
+ // for idle time to install it.
+ void SetIdleInstallInfo(const std::string& extension_id,
+ const FilePath& crx_path,
+ const std::string& version,
+ const base::Time& fetch_time);
+
+ // Removes any idle install information we have for the given |extension_id|.
+ // Returns true if there was info to remove; false otherwise.
+ bool RemoveIdleInstallInfo(const std::string& extension_id);
+
+ // If we have idle install information for |extension_id|, this puts it into
+ // the out parameters and returns true. Otherwise returns false.
+ bool GetIdleInstallInfo(const std::string& extension_id,
+ FilePath* crx_path,
+ std::string* version,
+ base::Time* fetch_time);
+
+ // Returns the extension id's that have idle install information.
+ std::set<std::string> GetIdleInstallInfoIds();
+
static void RegisterUserPrefs(PrefService* prefs);
// The underlying PrefService.
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine