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

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

Issue 8198007: Remove PrefService::ScheduleSavePersistentPrefs and SavePersistentPrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 // exist. 475 // exist.
476 const base::DictionaryValue* GetExtensionPref(const std::string& id) const; 476 const base::DictionaryValue* GetExtensionPref(const std::string& id) const;
477 477
478 // Returns the dictionary of preferences controlled by the specified extension 478 // Returns the dictionary of preferences controlled by the specified extension
479 // or creates a new one. All entries in the dictionary contain non-expanded 479 // or creates a new one. All entries in the dictionary contain non-expanded
480 // paths. 480 // paths.
481 const base::DictionaryValue* GetExtensionControlledPrefs( 481 const base::DictionaryValue* GetExtensionControlledPrefs(
482 const std::string& id, 482 const std::string& id,
483 bool incognito) const; 483 bool incognito) const;
484 484
485 // Serializes the data and schedules a persistent save via the |PrefService|.
486 // TODO(andybons): Fire an EXTENSION_PREF_CHANGED notification to be more
487 // granular than PREF_CHANGED.
488 void SavePrefs();
489
490 // Checks if kPrefBlacklist is set to true in the DictionaryValue. 485 // Checks if kPrefBlacklist is set to true in the DictionaryValue.
491 // Return false if the value is false or kPrefBlacklist does not exist. 486 // Return false if the value is false or kPrefBlacklist does not exist.
492 // This is used to decide if an extension is blacklisted. 487 // This is used to decide if an extension is blacklisted.
493 static bool IsBlacklistBitSet(base::DictionaryValue* ext); 488 static bool IsBlacklistBitSet(base::DictionaryValue* ext);
494 489
495 // Fix missing preference entries in the extensions that are were introduced 490 // Fix missing preference entries in the extensions that are were introduced
496 // in a later Chrome version. 491 // in a later Chrome version.
497 void FixMissingPrefs(const ExtensionIdSet& extension_ids); 492 void FixMissingPrefs(const ExtensionIdSet& extension_ids);
498 493
499 // Installs the persistent extension preferences into |prefs_|'s extension 494 // Installs the persistent extension preferences into |prefs_|'s extension
(...skipping 19 matching lines...) Expand all
519 514
520 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_; 515 scoped_refptr<ExtensionContentSettingsStore> content_settings_store_;
521 516
522 // The URLs of all of the toolstrips. 517 // The URLs of all of the toolstrips.
523 URLList shelf_order_; 518 URLList shelf_order_;
524 519
525 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 520 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
526 }; 521 };
527 522
528 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 523 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698