| OLD | NEW |
| 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 EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/prefs/scoped_user_pref_update.h" | 14 #include "base/prefs/scoped_user_pref_update.h" |
| 15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
| 16 #include "base/values.h" | 16 #include "base/values.h" |
| 17 #include "chrome/browser/extensions/extension_scoped_prefs.h" | |
| 18 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" | 17 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" |
| 19 #include "extensions/browser/app_sorting.h" | 18 #include "extensions/browser/app_sorting.h" |
| 19 #include "extensions/browser/extension_scoped_prefs.h" |
| 20 #include "extensions/common/constants.h" | 20 #include "extensions/common/constants.h" |
| 21 #include "extensions/common/extension.h" | 21 #include "extensions/common/extension.h" |
| 22 #include "extensions/common/url_pattern_set.h" | 22 #include "extensions/common/url_pattern_set.h" |
| 23 #include "sync/api/string_ordinal.h" | 23 #include "sync/api/string_ordinal.h" |
| 24 | 24 |
| 25 class ExtensionPrefValueMap; | 25 class ExtensionPrefValueMap; |
| 26 class PrefService; | 26 class PrefService; |
| 27 | 27 |
| 28 namespace content { | 28 namespace content { |
| 29 class BrowserContext; | 29 class BrowserContext; |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 // Helper function to complete initialization of the values in | 603 // Helper function to complete initialization of the values in |
| 604 // |extension_dict| for an extension install. Also see | 604 // |extension_dict| for an extension install. Also see |
| 605 // PopulateExtensionInfoPrefs(). | 605 // PopulateExtensionInfoPrefs(). |
| 606 void FinishExtensionInfoPrefs( | 606 void FinishExtensionInfoPrefs( |
| 607 const std::string& extension_id, | 607 const std::string& extension_id, |
| 608 const base::Time install_time, | 608 const base::Time install_time, |
| 609 bool needs_sort_ordinal, | 609 bool needs_sort_ordinal, |
| 610 const syncer::StringOrdinal& suggested_page_ordinal, | 610 const syncer::StringOrdinal& suggested_page_ordinal, |
| 611 base::DictionaryValue* extension_dict); | 611 base::DictionaryValue* extension_dict); |
| 612 | 612 |
| 613 // The pref service specific to this set of extension prefs. Owned by profile. | 613 // The pref service specific to this set of extension prefs. Owned by the |
| 614 // BrowserContext. |
| 614 PrefService* prefs_; | 615 PrefService* prefs_; |
| 615 | 616 |
| 616 // Base extensions install directory. | 617 // Base extensions install directory. |
| 617 base::FilePath install_directory_; | 618 base::FilePath install_directory_; |
| 618 | 619 |
| 619 // Weak pointer, owned by Profile. | 620 // Weak pointer, owned by BrowserContext. |
| 620 ExtensionPrefValueMap* extension_pref_value_map_; | 621 ExtensionPrefValueMap* extension_pref_value_map_; |
| 621 | 622 |
| 622 // Contains all the logic for handling the order for various extension | 623 // Contains all the logic for handling the order for various extension |
| 623 // properties. | 624 // properties. |
| 624 scoped_ptr<AppSorting> app_sorting_; | 625 scoped_ptr<AppSorting> app_sorting_; |
| 625 | 626 |
| 626 scoped_refptr<ContentSettingsStore> content_settings_store_; | 627 scoped_refptr<ContentSettingsStore> content_settings_store_; |
| 627 | 628 |
| 628 scoped_ptr<TimeProvider> time_provider_; | 629 scoped_ptr<TimeProvider> time_provider_; |
| 629 | 630 |
| 630 bool extensions_disabled_; | 631 bool extensions_disabled_; |
| 631 | 632 |
| 632 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); | 633 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); |
| 633 }; | 634 }; |
| 634 | 635 |
| 635 } // namespace extensions | 636 } // namespace extensions |
| 636 | 637 |
| 637 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ | 638 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ |
| OLD | NEW |