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

Side by Side Diff: chrome/browser/extensions/chrome_app_sorting.h

Issue 83023010: Remove ExtensionPrefs's dependency on ChromeAppSorting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: change a LOG(INFO) that i know nothing about to a VLOG(1) Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/chrome_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 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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "chrome/browser/extensions/extension_prefs.h" 13 #include "chrome/browser/extensions/extension_prefs.h"
14 #include "extensions/browser/app_sorting.h" 14 #include "extensions/browser/app_sorting.h"
15 #include "extensions/common/extension.h" 15 #include "extensions/common/extension.h"
16 #include "sync/api/string_ordinal.h" 16 #include "sync/api/string_ordinal.h"
17 17
18 class ExtensionSyncService; 18 class ExtensionSyncService;
19 class PrefService; 19 class PrefService;
20 20
21 namespace extensions { 21 namespace extensions {
22 22
23 class ExtensionScopedPrefs; 23 class ExtensionScopedPrefs;
24 24
25 class ChromeAppSorting : public AppSorting { 25 class ChromeAppSorting : public AppSorting {
26 public: 26 public:
27 explicit ChromeAppSorting(ExtensionScopedPrefs* extension_scoped_prefs); 27 ChromeAppSorting();
28 virtual ~ChromeAppSorting(); 28 virtual ~ChromeAppSorting();
29 29
30 // AppSorting implementation: 30 // AppSorting implementation:
31 virtual void SetExtensionScopedPrefs(ExtensionScopedPrefs* prefs) OVERRIDE;
31 virtual void SetExtensionSyncService( 32 virtual void SetExtensionSyncService(
32 ExtensionSyncService* extension_sync_service) OVERRIDE; 33 ExtensionSyncService* extension_sync_service) OVERRIDE;
33 virtual void Initialize( 34 virtual void Initialize(
34 const extensions::ExtensionIdList& extension_ids) OVERRIDE; 35 const extensions::ExtensionIdList& extension_ids) OVERRIDE;
35 virtual void FixNTPOrdinalCollisions() OVERRIDE; 36 virtual void FixNTPOrdinalCollisions() OVERRIDE;
36 virtual void EnsureValidOrdinals( 37 virtual void EnsureValidOrdinals(
37 const std::string& extension_id, 38 const std::string& extension_id,
38 const syncer::StringOrdinal& suggested_page) OVERRIDE; 39 const syncer::StringOrdinal& suggested_page) OVERRIDE;
39 virtual void OnExtensionMoved( 40 virtual void OnExtensionMoved(
40 const std::string& moved_extension_id, 41 const std::string& moved_extension_id,
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 177
177 // The set of extensions that don't appear in the new tab page. 178 // The set of extensions that don't appear in the new tab page.
178 std::set<std::string> ntp_hidden_extensions_; 179 std::set<std::string> ntp_hidden_extensions_;
179 180
180 DISALLOW_COPY_AND_ASSIGN(ChromeAppSorting); 181 DISALLOW_COPY_AND_ASSIGN(ChromeAppSorting);
181 }; 182 };
182 183
183 } // namespace extensions 184 } // namespace extensions
184 185
185 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_APP_SORTING_H_ 186 #endif // CHROME_BROWSER_EXTENSIONS_CHROME_APP_SORTING_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/chrome_app_sorting.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698