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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/sync_engine.h

Issue 59193003: [SyncFS] Add RemoteToLocalSyncer skeleton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 virtual void OnReadyToSendRequests() OVERRIDE; 110 virtual void OnReadyToSendRequests() OVERRIDE;
111 virtual void OnRefreshTokenInvalid() OVERRIDE; 111 virtual void OnRefreshTokenInvalid() OVERRIDE;
112 112
113 // net::NetworkChangeNotifier::NetworkChangeObserver overrides. 113 // net::NetworkChangeNotifier::NetworkChangeObserver overrides.
114 virtual void OnNetworkChanged( 114 virtual void OnNetworkChanged(
115 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE; 115 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE;
116 116
117 // SyncEngineContext overrides. 117 // SyncEngineContext overrides.
118 virtual drive::DriveServiceInterface* GetDriveService() OVERRIDE; 118 virtual drive::DriveServiceInterface* GetDriveService() OVERRIDE;
119 virtual MetadataDatabase* GetMetadataDatabase() OVERRIDE; 119 virtual MetadataDatabase* GetMetadataDatabase() OVERRIDE;
120 virtual RemoteChangeProcessor* GetRemoteChangeProcessor() OVERRIDE;
120 121
121 private: 122 private:
122 void DoDisableApp(const std::string& app_id, 123 void DoDisableApp(const std::string& app_id,
123 const SyncStatusCallback& callback); 124 const SyncStatusCallback& callback);
124 void DoEnableApp(const std::string& app_id, 125 void DoEnableApp(const std::string& app_id,
125 const SyncStatusCallback& callback); 126 const SyncStatusCallback& callback);
126 127
127 void DidInitialize(SyncEngineInitializer* initializer, 128 void DidInitialize(SyncEngineInitializer* initializer,
128 SyncStatusCode status); 129 SyncStatusCode status);
129 void DidProcessRemoteChange(RemoteToLocalSyncer* syncer, 130 void DidProcessRemoteChange(RemoteToLocalSyncer* syncer,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 174
174 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; 175 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_;
175 176
176 DISALLOW_COPY_AND_ASSIGN(SyncEngine); 177 DISALLOW_COPY_AND_ASSIGN(SyncEngine);
177 }; 178 };
178 179
179 } // namespace drive_backend 180 } // namespace drive_backend
180 } // namespace sync_file_system 181 } // namespace sync_file_system
181 182
182 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ 183 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698