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

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: rename app_list_extension_ordering to app_list_extension_sorting for consistency Created 7 years, 5 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/extension_scoped_prefs.h" 16 #include "chrome/browser/extensions/extension_scoped_prefs.h"
17 #include "chrome/browser/prefs/scoped_user_pref_update.h" 17 #include "chrome/browser/prefs/scoped_user_pref_update.h"
18 #include "chrome/browser/ui/app_list/app_list_extension_sorting.h"
18 #include "chrome/common/extensions/extension.h" 19 #include "chrome/common/extensions/extension.h"
19 #include "components/browser_context_keyed_service/browser_context_keyed_service .h" 20 #include "components/browser_context_keyed_service/browser_context_keyed_service .h"
20 #include "extensions/common/url_pattern_set.h" 21 #include "extensions/common/url_pattern_set.h"
21 #include "sync/api/string_ordinal.h" 22 #include "sync/api/string_ordinal.h"
22 23
23 class ExtensionPrefValueMap; 24 class ExtensionPrefValueMap;
24 class ExtensionSorting; 25 class ExtensionSorting;
25 class PrefService; 26 class PrefService;
26 class Profile; 27 class Profile;
27 28
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 } 472 }
472 473
473 // The underlying PrefService. 474 // The underlying PrefService.
474 PrefService* pref_service() const { return prefs_; } 475 PrefService* pref_service() const { return prefs_; }
475 476
476 // The underlying ExtensionSorting. 477 // The underlying ExtensionSorting.
477 ExtensionSorting* extension_sorting() const { 478 ExtensionSorting* extension_sorting() const {
478 return extension_sorting_.get(); 479 return extension_sorting_.get();
479 } 480 }
480 481
482 // The ordering of apps in the app list.
483 AppListExtensionSorting* app_list_extension_sorting() const {
484 return app_list_extension_sorting_.get();
485 }
486
481 // Describes the URLs that are able to install extensions. See 487 // Describes the URLs that are able to install extensions. See
482 // prefs::kExtensionAllowedInstallSites for more information. 488 // prefs::kExtensionAllowedInstallSites for more information.
483 URLPatternSet GetAllowedInstallSites(); 489 URLPatternSet GetAllowedInstallSites();
484 490
485 // Schedules garbage collection of an extension's on-disk data on the next 491 // Schedules garbage collection of an extension's on-disk data on the next
486 // start of this ExtensionService. Applies only to extensions with isolated 492 // start of this ExtensionService. Applies only to extensions with isolated
487 // storage. 493 // storage.
488 void SetNeedsStorageGarbageCollection(bool value); 494 void SetNeedsStorageGarbageCollection(bool value);
489 bool NeedsStorageGarbageCollection(); 495 bool NeedsStorageGarbageCollection();
490 496
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 // Base extensions install directory. 616 // Base extensions install directory.
611 base::FilePath install_directory_; 617 base::FilePath install_directory_;
612 618
613 // Weak pointer, owned by Profile. 619 // Weak pointer, owned by Profile.
614 ExtensionPrefValueMap* extension_pref_value_map_; 620 ExtensionPrefValueMap* extension_pref_value_map_;
615 621
616 // Contains all the logic for handling the order for various extension 622 // Contains all the logic for handling the order for various extension
617 // properties. 623 // properties.
618 scoped_ptr<ExtensionSorting> extension_sorting_; 624 scoped_ptr<ExtensionSorting> extension_sorting_;
619 625
626 scoped_ptr<AppListExtensionSorting> app_list_extension_sorting_;
627
620 scoped_refptr<ContentSettingsStore> content_settings_store_; 628 scoped_refptr<ContentSettingsStore> content_settings_store_;
621 629
622 scoped_ptr<TimeProvider> time_provider_; 630 scoped_ptr<TimeProvider> time_provider_;
623 631
624 bool extensions_disabled_; 632 bool extensions_disabled_;
625 633
626 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 634 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
627 }; 635 };
628 636
629 } // namespace extensions 637 } // namespace extensions
630 638
631 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_ 639 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_PREFS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698