| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_CHROME_APP_SORTING_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_CHROME_APP_SORTING_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_APP_SORTING_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_CHROME_APP_SORTING_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 #include <set> | 11 #include <set> |
| 12 #include <string> | 12 #include <string> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "components/sync/model/string_ordinal.h" | 15 #include "components/sync/model/string_ordinal.h" |
| 16 #include "extensions/browser/app_sorting.h" | 16 #include "extensions/browser/app_sorting.h" |
| 17 #include "extensions/browser/extension_prefs.h" | 17 #include "extensions/browser/extension_prefs.h" |
| 18 #include "extensions/common/extension.h" | 18 #include "extensions/common/extension.h" |
| 19 | 19 |
| 20 class PrefService; | |
| 21 | |
| 22 namespace extensions { | 20 namespace extensions { |
| 23 | 21 |
| 24 class ExtensionScopedPrefs; | |
| 25 | |
| 26 class ChromeAppSorting : public AppSorting { | 22 class ChromeAppSorting : public AppSorting { |
| 27 public: | 23 public: |
| 28 explicit ChromeAppSorting(content::BrowserContext* browser_context); | 24 explicit ChromeAppSorting(content::BrowserContext* browser_context); |
| 29 ~ChromeAppSorting() override; | 25 ~ChromeAppSorting() override; |
| 30 | 26 |
| 31 // AppSorting implementation: | 27 // AppSorting implementation: |
| 32 void FixNTPOrdinalCollisions() override; | 28 void FixNTPOrdinalCollisions() override; |
| 33 void EnsureValidOrdinals( | 29 void EnsureValidOrdinals( |
| 34 const std::string& extension_id, | 30 const std::string& extension_id, |
| 35 const syncer::StringOrdinal& suggested_page) override; | 31 const syncer::StringOrdinal& suggested_page) override; |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 165 |
| 170 // The set of extensions that don't appear in the new tab page. | 166 // The set of extensions that don't appear in the new tab page. |
| 171 std::set<std::string> ntp_hidden_extensions_; | 167 std::set<std::string> ntp_hidden_extensions_; |
| 172 | 168 |
| 173 DISALLOW_COPY_AND_ASSIGN(ChromeAppSorting); | 169 DISALLOW_COPY_AND_ASSIGN(ChromeAppSorting); |
| 174 }; | 170 }; |
| 175 | 171 |
| 176 } // namespace extensions | 172 } // namespace extensions |
| 177 | 173 |
| 178 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_APP_SORTING_H_ | 174 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_APP_SORTING_H_ |
| OLD | NEW |