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

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

Issue 17038002: Separate the NTP app ordering from the app list app ordering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add sync test Created 7 years, 6 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
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>
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/time.h" 14 #include "base/time.h"
15 #include "base/values.h" 15 #include "base/values.h"
16 #include "chrome/browser/extensions/api/content_settings/content_settings_store. h" 16 #include "chrome/browser/extensions/api/content_settings/content_settings_store. h"
17 #include "chrome/browser/extensions/extension_prefs_scope.h" 17 #include "chrome/browser/extensions/extension_prefs_scope.h"
18 #include "chrome/browser/extensions/extension_scoped_prefs.h" 18 #include "chrome/browser/extensions/extension_scoped_prefs.h"
19 #include "chrome/browser/prefs/scoped_user_pref_update.h" 19 #include "chrome/browser/prefs/scoped_user_pref_update.h"
20 #include "chrome/browser/ui/app_list/app_list_extension_ordering.h"
20 #include "chrome/common/extensions/extension.h" 21 #include "chrome/common/extensions/extension.h"
21 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" 22 #include "components/browser_context_keyed_service/browser_context_keyed_service .h"
22 #include "extensions/common/url_pattern_set.h" 23 #include "extensions/common/url_pattern_set.h"
23 #include "sync/api/string_ordinal.h" 24 #include "sync/api/string_ordinal.h"
24 25
25 class ExtensionPrefValueMap; 26 class ExtensionPrefValueMap;
26 class ExtensionSorting; 27 class ExtensionSorting;
27 class PrefService; 28 class PrefService;
28 class Profile; 29 class Profile;
29 30
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 } 492 }
492 493
493 // The underlying PrefService. 494 // The underlying PrefService.
494 PrefService* pref_service() const { return prefs_; } 495 PrefService* pref_service() const { return prefs_; }
495 496
496 // The underlying ExtensionSorting. 497 // The underlying ExtensionSorting.
497 ExtensionSorting* extension_sorting() const { 498 ExtensionSorting* extension_sorting() const {
498 return extension_sorting_.get(); 499 return extension_sorting_.get();
499 } 500 }
500 501
502 // The ordering of apps in the app list.
503 AppListExtensionOrdering* app_list_extension_ordering() const {
504 return app_list_extension_ordering_.get();
505 }
506
501 // Describes the URLs that are able to install extensions. See 507 // Describes the URLs that are able to install extensions. See
502 // prefs::kExtensionAllowedInstallSites for more information. 508 // prefs::kExtensionAllowedInstallSites for more information.
503 URLPatternSet GetAllowedInstallSites(); 509 URLPatternSet GetAllowedInstallSites();
504 510
505 // Schedules garbage collection of an extension's on-disk data on the next 511 // Schedules garbage collection of an extension's on-disk data on the next
506 // start of this ExtensionService. Applies only to extensions with isolated 512 // start of this ExtensionService. Applies only to extensions with isolated
507 // storage. 513 // storage.
508 void SetNeedsStorageGarbageCollection(bool value); 514 void SetNeedsStorageGarbageCollection(bool value);
509 bool NeedsStorageGarbageCollection(); 515 bool NeedsStorageGarbageCollection();
510 516
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 // Base extensions install directory. 645 // Base extensions install directory.
640 base::FilePath install_directory_; 646 base::FilePath install_directory_;
641 647
642 // Weak pointer, owned by Profile. 648 // Weak pointer, owned by Profile.
643 ExtensionPrefValueMap* extension_pref_value_map_; 649 ExtensionPrefValueMap* extension_pref_value_map_;
644 650
645 // Contains all the logic for handling the order for various extension 651 // Contains all the logic for handling the order for various extension
646 // properties. 652 // properties.
647 scoped_ptr<ExtensionSorting> extension_sorting_; 653 scoped_ptr<ExtensionSorting> extension_sorting_;
648 654
655 scoped_ptr<AppListExtensionOrdering> app_list_extension_ordering_;
656
649 scoped_refptr<ContentSettingsStore> content_settings_store_; 657 scoped_refptr<ContentSettingsStore> content_settings_store_;
650 658
651 scoped_ptr<TimeProvider> time_provider_; 659 scoped_ptr<TimeProvider> time_provider_;
652 660
653 bool extensions_disabled_; 661 bool extensions_disabled_;
654 662
655 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 663 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
656 }; 664 };
657 665
658 } // namespace extensions 666 } // namespace extensions
659 667
660 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 668 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698