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

Side by Side Diff: chrome/browser/extensions/extension_prefs.h

Issue 11419307: Garbage Collect the Storage directory on next profile start after an extension uninstall. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Basic code done. Created 8 years 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_EXTENSION_PREFS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 487
488 // The underlying ExtensionSorting. 488 // The underlying ExtensionSorting.
489 ExtensionSorting* extension_sorting() const { 489 ExtensionSorting* extension_sorting() const {
490 return extension_sorting_.get(); 490 return extension_sorting_.get();
491 } 491 }
492 492
493 // Describes the URLs that are able to install extensions. See 493 // Describes the URLs that are able to install extensions. See
494 // prefs::kExtensionAllowedInstallSites for more information. 494 // prefs::kExtensionAllowedInstallSites for more information.
495 URLPatternSet GetAllowedInstallSites(); 495 URLPatternSet GetAllowedInstallSites();
496 496
497 // Schedules garbage collection of an extension's on-disk data on the next
498 // start of this ExtensionService. Applies only to extensions with isolated
499 // storage.
500 void SetNeedsStorageGarbageCollection(bool value);
501 bool NeedsStorageGarbageCollection();
502
497 private: 503 private:
498 friend class ExtensionPrefsUninstallExtension; // Unit test. 504 friend class ExtensionPrefsUninstallExtension; // Unit test.
499 505
500 // See the Create methods. 506 // See the Create methods.
501 ExtensionPrefs(PrefService* prefs, 507 ExtensionPrefs(PrefService* prefs,
502 const FilePath& root_dir, 508 const FilePath& root_dir,
503 ExtensionPrefValueMap* extension_pref_value_map, 509 ExtensionPrefValueMap* extension_pref_value_map,
504 scoped_ptr<TimeProvider> time_provider); 510 scoped_ptr<TimeProvider> time_provider);
505 511
506 // If |extensions_disabled| is true, extension controlled preferences and 512 // If |extensions_disabled| is true, extension controlled preferences and
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 scoped_refptr<ContentSettingsStore> content_settings_store_; 620 scoped_refptr<ContentSettingsStore> content_settings_store_;
615 621
616 scoped_ptr<TimeProvider> time_provider_; 622 scoped_ptr<TimeProvider> time_provider_;
617 623
618 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 624 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
619 }; 625 };
620 626
621 } // namespace extensions 627 } // namespace extensions
622 628
623 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 629 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698