OLD | NEW |
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 30 matching lines...) Expand all Loading... |
41 class LocalToRemoteSyncer : public SyncTask { | 41 class LocalToRemoteSyncer : public SyncTask { |
42 public: | 42 public: |
43 typedef base::Callback<void(scoped_ptr<SyncTaskToken>)> Continuation; | 43 typedef base::Callback<void(scoped_ptr<SyncTaskToken>)> Continuation; |
44 | 44 |
45 LocalToRemoteSyncer(SyncEngineContext* sync_context, | 45 LocalToRemoteSyncer(SyncEngineContext* sync_context, |
46 const SyncFileMetadata& local_metadata, | 46 const SyncFileMetadata& local_metadata, |
47 const FileChange& local_change, | 47 const FileChange& local_change, |
48 const base::FilePath& local_path, | 48 const base::FilePath& local_path, |
49 const storage::FileSystemURL& url); | 49 const storage::FileSystemURL& url); |
50 virtual ~LocalToRemoteSyncer(); | 50 virtual ~LocalToRemoteSyncer(); |
51 virtual void RunPreflight(scoped_ptr<SyncTaskToken> token) OVERRIDE; | 51 virtual void RunPreflight(scoped_ptr<SyncTaskToken> token) override; |
52 | 52 |
53 const storage::FileSystemURL& url() const { return url_; } | 53 const storage::FileSystemURL& url() const { return url_; } |
54 const base::FilePath& target_path() const { return target_path_; } | 54 const base::FilePath& target_path() const { return target_path_; } |
55 SyncFileType file_type() const { return file_type_; } | 55 SyncFileType file_type() const { return file_type_; } |
56 SyncAction sync_action() const { return sync_action_; } | 56 SyncAction sync_action() const { return sync_action_; } |
57 bool needs_remote_change_listing() const { | 57 bool needs_remote_change_listing() const { |
58 return needs_remote_change_listing_; | 58 return needs_remote_change_listing_; |
59 } | 59 } |
60 | 60 |
61 private: | 61 private: |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 base::WeakPtrFactory<LocalToRemoteSyncer> weak_ptr_factory_; | 128 base::WeakPtrFactory<LocalToRemoteSyncer> weak_ptr_factory_; |
129 | 129 |
130 DISALLOW_COPY_AND_ASSIGN(LocalToRemoteSyncer); | 130 DISALLOW_COPY_AND_ASSIGN(LocalToRemoteSyncer); |
131 }; | 131 }; |
132 | 132 |
133 } // namespace drive_backend | 133 } // namespace drive_backend |
134 } // namespace sync_file_system | 134 } // namespace sync_file_system |
135 | 135 |
136 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LOCAL_TO_REMOTE_SYNCER_
H_ | 136 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_LOCAL_TO_REMOTE_SYNCER_
H_ |
OLD | NEW |