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

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: small fixes. 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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 496
497 // The underlying ExtensionSorting. 497 // The underlying ExtensionSorting.
498 ExtensionSorting* extension_sorting() const { 498 ExtensionSorting* extension_sorting() const {
499 return extension_sorting_.get(); 499 return extension_sorting_.get();
500 } 500 }
501 501
502 // Describes the URLs that are able to install extensions. See 502 // Describes the URLs that are able to install extensions. See
503 // prefs::kExtensionAllowedInstallSites for more information. 503 // prefs::kExtensionAllowedInstallSites for more information.
504 URLPatternSet GetAllowedInstallSites(); 504 URLPatternSet GetAllowedInstallSites();
505 505
506 // Schedules garbage collection of an extension's on-disk data on the next
507 // start of this ExtensionService. Applies only to extensions with isolated
508 // storage.
509 void SetNeedsStorageGarbageCollection(bool value);
510 bool NeedsStorageGarbageCollection();
511
506 private: 512 private:
507 friend class ExtensionPrefsBlacklistedExtensions; // Unit test. 513 friend class ExtensionPrefsBlacklistedExtensions; // Unit test.
508 friend class ExtensionPrefsUninstallExtension; // Unit test. 514 friend class ExtensionPrefsUninstallExtension; // Unit test.
509 515
510 // See the Create methods. 516 // See the Create methods.
511 ExtensionPrefs(PrefService* prefs, 517 ExtensionPrefs(PrefService* prefs,
512 const FilePath& root_dir, 518 const FilePath& root_dir,
513 ExtensionPrefValueMap* extension_pref_value_map, 519 ExtensionPrefValueMap* extension_pref_value_map,
514 scoped_ptr<TimeProvider> time_provider); 520 scoped_ptr<TimeProvider> time_provider);
515 521
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 scoped_refptr<ContentSettingsStore> content_settings_store_; 642 scoped_refptr<ContentSettingsStore> content_settings_store_;
637 643
638 scoped_ptr<TimeProvider> time_provider_; 644 scoped_ptr<TimeProvider> time_provider_;
639 645
640 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 646 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
641 }; 647 };
642 648
643 } // namespace extensions 649 } // namespace extensions
644 650
645 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 651 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698