| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_NULL_APP_SORTING_H_ | 5 #ifndef EXTENSIONS_BROWSER_NULL_APP_SORTING_H_ |
| 6 #define EXTENSIONS_BROWSER_NULL_APP_SORTING_H_ | 6 #define EXTENSIONS_BROWSER_NULL_APP_SORTING_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "extensions/browser/app_sorting.h" | 10 #include "extensions/browser/app_sorting.h" |
| 11 | 11 |
| 12 namespace extensions { | 12 namespace extensions { |
| 13 | 13 |
| 14 // An AppSorting that doesn't provide any ordering. | 14 // An AppSorting that doesn't provide any ordering. |
| 15 class NullAppSorting : public AppSorting { | 15 class NullAppSorting : public AppSorting { |
| 16 public: | 16 public: |
| 17 NullAppSorting(); | 17 NullAppSorting(); |
| 18 ~NullAppSorting() override; | 18 ~NullAppSorting() override; |
| 19 | 19 |
| 20 // AppSorting overrides: | 20 // AppSorting overrides: |
| 21 void SetExtensionScopedPrefs(ExtensionScopedPrefs* prefs) override; | 21 void SetExtensionScopedPrefs(ExtensionScopedPrefs* prefs) override; |
| 22 void CheckExtensionScopedPrefs() const override; | 22 void CheckExtensionScopedPrefs() const override; |
| 23 void SetExtensionSyncService( | |
| 24 ExtensionSyncService* extension_sync_service) override; | |
| 25 void Initialize(const ExtensionIdList& extension_ids) override; | 23 void Initialize(const ExtensionIdList& extension_ids) override; |
| 26 void FixNTPOrdinalCollisions() override; | 24 void FixNTPOrdinalCollisions() override; |
| 27 void EnsureValidOrdinals( | 25 void EnsureValidOrdinals( |
| 28 const std::string& extension_id, | 26 const std::string& extension_id, |
| 29 const syncer::StringOrdinal& suggested_page) override; | 27 const syncer::StringOrdinal& suggested_page) override; |
| 30 void OnExtensionMoved(const std::string& moved_extension_id, | 28 void OnExtensionMoved(const std::string& moved_extension_id, |
| 31 const std::string& predecessor_extension_id, | 29 const std::string& predecessor_extension_id, |
| 32 const std::string& successor_extension_id) override; | 30 const std::string& successor_extension_id) override; |
| 33 syncer::StringOrdinal GetAppLaunchOrdinal( | 31 syncer::StringOrdinal GetAppLaunchOrdinal( |
| 34 const std::string& extension_id) const override; | 32 const std::string& extension_id) const override; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 52 void SetExtensionVisible(const std::string& extension_id, | 50 void SetExtensionVisible(const std::string& extension_id, |
| 53 bool visible) override; | 51 bool visible) override; |
| 54 | 52 |
| 55 private: | 53 private: |
| 56 DISALLOW_COPY_AND_ASSIGN(NullAppSorting); | 54 DISALLOW_COPY_AND_ASSIGN(NullAppSorting); |
| 57 }; | 55 }; |
| 58 | 56 |
| 59 } // namespace extensions | 57 } // namespace extensions |
| 60 | 58 |
| 61 #endif // EXTENSIONS_BROWSER_NULL_APP_SORTING_H_ | 59 #endif // EXTENSIONS_BROWSER_NULL_APP_SORTING_H_ |
| OLD | NEW |