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

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

Issue 308003005: app_list: Drive app integration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: format Created 6 years, 6 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 | Annotate | Revision Log
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"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 virtual syncer::SyncDataList GetAllSyncData( 94 virtual syncer::SyncDataList GetAllSyncData(
95 syncer::ModelType type) const OVERRIDE; 95 syncer::ModelType type) const OVERRIDE;
96 virtual syncer::SyncError ProcessSyncChanges( 96 virtual syncer::SyncError ProcessSyncChanges(
97 const tracked_objects::Location& from_here, 97 const tracked_objects::Location& from_here,
98 const syncer::SyncChangeList& change_list) OVERRIDE; 98 const syncer::SyncChangeList& change_list) OVERRIDE;
99 99
100 private: 100 private:
101 class ModelObserver; 101 class ModelObserver;
102 typedef std::map<std::string, SyncItem*> SyncItemMap; 102 typedef std::map<std::string, SyncItem*> SyncItemMap;
103 103
104 // KeyedService
105 virtual void Shutdown() OVERRIDE;
106
104 // content::NotificationObserver 107 // content::NotificationObserver
105 virtual void Observe(int type, 108 virtual void Observe(int type,
106 const content::NotificationSource& source, 109 const content::NotificationSource& source,
107 const content::NotificationDetails& details) OVERRIDE; 110 const content::NotificationDetails& details) OVERRIDE;
108 111
109 // Builds the model once ExtensionService is ready. 112 // Builds the model once ExtensionService is ready.
110 void BuildModel(); 113 void BuildModel();
111 114
112 // Returns true if sync has restarted, otherwise runs |flare_|. 115 // Returns true if sync has restarted, otherwise runs |flare_|.
113 bool SyncStarted(); 116 bool SyncStarted();
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 SyncItemMap sync_items_; 198 SyncItemMap sync_items_;
196 syncer::SyncableService::StartSyncFlare flare_; 199 syncer::SyncableService::StartSyncFlare flare_;
197 std::string oem_folder_name_; 200 std::string oem_folder_name_;
198 201
199 DISALLOW_COPY_AND_ASSIGN(AppListSyncableService); 202 DISALLOW_COPY_AND_ASSIGN(AppListSyncableService);
200 }; 203 };
201 204
202 } // namespace app_list 205 } // namespace app_list
203 206
204 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_ 207 #endif // CHROME_BROWSER_UI_APP_LIST_APP_LIST_SYNCABLE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698