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

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

Issue 322813002: [SyncFS] Drop test only un-thread-safe getters from SyncEngine (4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: buildfix 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_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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 virtual void OnPushNotificationEnabled(bool enabled) OVERRIDE; 113 virtual void OnPushNotificationEnabled(bool enabled) OVERRIDE;
114 114
115 // drive::DriveServiceObserver overrides. 115 // drive::DriveServiceObserver overrides.
116 virtual void OnReadyToSendRequests() OVERRIDE; 116 virtual void OnReadyToSendRequests() OVERRIDE;
117 virtual void OnRefreshTokenInvalid() OVERRIDE; 117 virtual void OnRefreshTokenInvalid() OVERRIDE;
118 118
119 // net::NetworkChangeNotifier::NetworkChangeObserver overrides. 119 // net::NetworkChangeNotifier::NetworkChangeObserver overrides.
120 virtual void OnNetworkChanged( 120 virtual void OnNetworkChanged(
121 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE; 121 net::NetworkChangeNotifier::ConnectionType type) OVERRIDE;
122 122
123 drive::DriveServiceInterface* GetDriveService();
124 drive::DriveUploaderInterface* GetDriveUploader();
125
126 void OnPendingFileListUpdated(int item_count); 123 void OnPendingFileListUpdated(int item_count);
127 void OnFileStatusChanged(const fileapi::FileSystemURL& url, 124 void OnFileStatusChanged(const fileapi::FileSystemURL& url,
128 SyncFileStatus file_status, 125 SyncFileStatus file_status,
129 SyncAction sync_action, 126 SyncAction sync_action,
130 SyncDirection direction); 127 SyncDirection direction);
131 void UpdateServiceState(RemoteServiceState state, 128 void UpdateServiceState(RemoteServiceState state,
132 const std::string& description); 129 const std::string& description);
133 130
134 private: 131 private:
135 class WorkerObserver; 132 class WorkerObserver;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 CallbackTracker callback_tracker_; 172 CallbackTracker callback_tracker_;
176 173
177 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_; 174 base::WeakPtrFactory<SyncEngine> weak_ptr_factory_;
178 DISALLOW_COPY_AND_ASSIGN(SyncEngine); 175 DISALLOW_COPY_AND_ASSIGN(SyncEngine);
179 }; 176 };
180 177
181 } // namespace drive_backend 178 } // namespace drive_backend
182 } // namespace sync_file_system 179 } // namespace sync_file_system
183 180
184 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_ 181 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698