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

Side by Side Diff: chrome/browser/ui/app_list/app_list_syncable_service.h

Issue 1413153007: arc-app-launcher: Minimal support for ARC app launcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing links to BUILD.gn Created 5 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
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_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_
6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_ 6 #define CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/apps/drive/drive_app_uninstall_sync_service.h" 11 #include "chrome/browser/apps/drive/drive_app_uninstall_sync_service.h"
12 #include "chrome/browser/sync/glue/sync_start_util.h" 12 #include "chrome/browser/sync/glue/sync_start_util.h"
13 #include "components/keyed_service/core/keyed_service.h" 13 #include "components/keyed_service/core/keyed_service.h"
14 #include "sync/api/string_ordinal.h" 14 #include "sync/api/string_ordinal.h"
15 #include "sync/api/sync_change.h" 15 #include "sync/api/sync_change.h"
16 #include "sync/api/sync_change_processor.h" 16 #include "sync/api/sync_change_processor.h"
17 #include "sync/api/sync_error_factory.h" 17 #include "sync/api/sync_error_factory.h"
18 #include "sync/api/syncable_service.h" 18 #include "sync/api/syncable_service.h"
19 #include "sync/protocol/app_list_specifics.pb.h" 19 #include "sync/protocol/app_list_specifics.pb.h"
20 20
21 #if defined(OS_CHROMEOS)
22 class ArcAppModelBuilder;
23 #endif
24
21 class DriveAppProvider; 25 class DriveAppProvider;
22 class ExtensionAppModelBuilder; 26 class ExtensionAppModelBuilder;
23 class Profile; 27 class Profile;
24 28
25 namespace extensions { 29 namespace extensions {
26 class ExtensionSystem; 30 class ExtensionSystem;
27 } 31 }
28 32
29 namespace sync_pb { 33 namespace sync_pb {
30 class AppListSpecifics; 34 class AppListSpecifics;
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // Returns true if an extension matching |id| exists and was installed by 197 // Returns true if an extension matching |id| exists and was installed by
194 // an OEM (extension->was_installed_by_oem() is true). 198 // an OEM (extension->was_installed_by_oem() is true).
195 bool AppIsOem(const std::string& id); 199 bool AppIsOem(const std::string& id);
196 200
197 Profile* profile_; 201 Profile* profile_;
198 extensions::ExtensionSystem* extension_system_; 202 extensions::ExtensionSystem* extension_system_;
199 scoped_ptr<AppListModel> model_; 203 scoped_ptr<AppListModel> model_;
200 scoped_ptr<ModelObserver> model_observer_; 204 scoped_ptr<ModelObserver> model_observer_;
201 scoped_ptr<ModelPrefUpdater> model_pref_updater_; 205 scoped_ptr<ModelPrefUpdater> model_pref_updater_;
202 scoped_ptr<ExtensionAppModelBuilder> apps_builder_; 206 scoped_ptr<ExtensionAppModelBuilder> apps_builder_;
207 #if defined(OS_CHROMEOS)
208 scoped_ptr<ArcAppModelBuilder> arc_apps_builder_;
209 #endif
203 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; 210 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_;
204 scoped_ptr<syncer::SyncErrorFactory> sync_error_handler_; 211 scoped_ptr<syncer::SyncErrorFactory> sync_error_handler_;
205 SyncItemMap sync_items_; 212 SyncItemMap sync_items_;
206 syncer::SyncableService::StartSyncFlare flare_; 213 syncer::SyncableService::StartSyncFlare flare_;
207 bool initial_sync_data_processed_; 214 bool initial_sync_data_processed_;
208 bool first_app_list_sync_; 215 bool first_app_list_sync_;
209 std::string oem_folder_name_; 216 std::string oem_folder_name_;
210 217
211 // Provides integration with Drive apps. 218 // Provides integration with Drive apps.
212 scoped_ptr<DriveAppProvider> drive_app_provider_; 219 scoped_ptr<DriveAppProvider> drive_app_provider_;
213 220
214 DISALLOW_COPY_AND_ASSIGN(AppListSyncableService); 221 DISALLOW_COPY_AND_ASSIGN(AppListSyncableService);
215 }; 222 };
216 223
217 } // namespace app_list 224 } // namespace app_list
218 225
219 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_ 226 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/app_list/app_list_model_builder.cc ('k') | chrome/browser/ui/app_list/app_list_syncable_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698