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

Side by Side Diff: extensions/browser/null_app_sorting.h

Issue 1254363004: Move ownership of AppSorting from ExtensionPrefs to ExtensionSystem (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing include Created 5 years, 4 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
« no previous file with comments | « extensions/browser/mock_extension_system.cc ('k') | extensions/browser/null_app_sorting.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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;
22 void CheckExtensionScopedPrefs() const override;
23 void Initialize(const ExtensionIdList& extension_ids) override;
24 void FixNTPOrdinalCollisions() override; 21 void FixNTPOrdinalCollisions() override;
25 void EnsureValidOrdinals( 22 void EnsureValidOrdinals(
26 const std::string& extension_id, 23 const std::string& extension_id,
27 const syncer::StringOrdinal& suggested_page) override; 24 const syncer::StringOrdinal& suggested_page) override;
28 void OnExtensionMoved(const std::string& moved_extension_id, 25 void OnExtensionMoved(const std::string& moved_extension_id,
29 const std::string& predecessor_extension_id, 26 const std::string& predecessor_extension_id,
30 const std::string& successor_extension_id) override; 27 const std::string& successor_extension_id) override;
31 syncer::StringOrdinal GetAppLaunchOrdinal( 28 syncer::StringOrdinal GetAppLaunchOrdinal(
32 const std::string& extension_id) const override; 29 const std::string& extension_id) const override;
33 void SetAppLaunchOrdinal( 30 void SetAppLaunchOrdinal(
(...skipping 16 matching lines...) Expand all
50 void SetExtensionVisible(const std::string& extension_id, 47 void SetExtensionVisible(const std::string& extension_id,
51 bool visible) override; 48 bool visible) override;
52 49
53 private: 50 private:
54 DISALLOW_COPY_AND_ASSIGN(NullAppSorting); 51 DISALLOW_COPY_AND_ASSIGN(NullAppSorting);
55 }; 52 };
56 53
57 } // namespace extensions 54 } // namespace extensions
58 55
59 #endif // EXTENSIONS_BROWSER_NULL_APP_SORTING_H_ 56 #endif // EXTENSIONS_BROWSER_NULL_APP_SORTING_H_
OLDNEW
« no previous file with comments | « extensions/browser/mock_extension_system.cc ('k') | extensions/browser/null_app_sorting.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698