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

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

Powered by Google App Engine
This is Rietveld 408576698