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

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

Issue 560703002: [SyncFS] Expand simple functions to their caller in drive_backend/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@03_context_rename
Patch Set: rebase Created 6 years, 3 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
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_LOCAL_TO_REMOTE_SYNCER_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LOCAL_TO_REMOTE_SYNCER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LOCAL_TO_REMOTE_SYNCER_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LOCAL_TO_REMOTE_SYNCER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 void DeleteRemoteFile(scoped_ptr<SyncTaskToken> token); 74 void DeleteRemoteFile(scoped_ptr<SyncTaskToken> token);
75 void DidDeleteRemoteFile(scoped_ptr<SyncTaskToken> token, 75 void DidDeleteRemoteFile(scoped_ptr<SyncTaskToken> token,
76 google_apis::GDataErrorCode error); 76 google_apis::GDataErrorCode error);
77 77
78 void UploadExistingFile(scoped_ptr<SyncTaskToken> token); 78 void UploadExistingFile(scoped_ptr<SyncTaskToken> token);
79 void DidUploadExistingFile(scoped_ptr<SyncTaskToken> token, 79 void DidUploadExistingFile(scoped_ptr<SyncTaskToken> token,
80 google_apis::GDataErrorCode error, 80 google_apis::GDataErrorCode error,
81 const GURL&, 81 const GURL&,
82 scoped_ptr<google_apis::FileResource>); 82 scoped_ptr<google_apis::FileResource>);
83 void DidUpdateDatabaseForUploadExistingFile(
84 scoped_ptr<SyncTaskToken> token,
85 SyncStatusCode status);
86 void UpdateRemoteMetadata(const std::string& file_id, 83 void UpdateRemoteMetadata(const std::string& file_id,
87 scoped_ptr<SyncTaskToken> token); 84 scoped_ptr<SyncTaskToken> token);
88 void DidGetRemoteMetadata(const std::string& file_id, 85 void DidGetRemoteMetadata(const std::string& file_id,
89 scoped_ptr<SyncTaskToken> token, 86 scoped_ptr<SyncTaskToken> token,
90 google_apis::GDataErrorCode error, 87 google_apis::GDataErrorCode error,
91 scoped_ptr<google_apis::FileResource> entry); 88 scoped_ptr<google_apis::FileResource> entry);
92 89
93 void UploadNewFile(scoped_ptr<SyncTaskToken> token); 90 void UploadNewFile(scoped_ptr<SyncTaskToken> token);
94 void DidUploadNewFile(scoped_ptr<SyncTaskToken> token, 91 void DidUploadNewFile(scoped_ptr<SyncTaskToken> token,
95 google_apis::GDataErrorCode error, 92 google_apis::GDataErrorCode error,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 125
129 base::WeakPtrFactory<LocalToRemoteSyncer> weak_ptr_factory_; 126 base::WeakPtrFactory<LocalToRemoteSyncer> weak_ptr_factory_;
130 127
131 DISALLOW_COPY_AND_ASSIGN(LocalToRemoteSyncer); 128 DISALLOW_COPY_AND_ASSIGN(LocalToRemoteSyncer);
132 }; 129 };
133 130
134 } // namespace drive_backend 131 } // namespace drive_backend
135 } // namespace sync_file_system 132 } // namespace sync_file_system
136 133
137 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LOCAL_TO_REMOTE_SYNCER_ H_ 134 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LOCAL_TO_REMOTE_SYNCER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698