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

Side by Side Diff: chrome/browser/sync_file_system/local/syncable_file_operation_runner.h

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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_LOCAL_SYNCABLE_FILE_OPERATION_RUNNER_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_OPERATION_RUNNER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_OPERATION_RUNNER_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_OPERATION_RUNNER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 static void CancelAndDelete(Task* task); 50 static void CancelAndDelete(Task* task);
51 51
52 DISALLOW_COPY_AND_ASSIGN(Task); 52 DISALLOW_COPY_AND_ASSIGN(Task);
53 }; 53 };
54 54
55 SyncableFileOperationRunner(int64 max_inflight_tasks, 55 SyncableFileOperationRunner(int64 max_inflight_tasks,
56 LocalFileSyncStatus* sync_status); 56 LocalFileSyncStatus* sync_status);
57 virtual ~SyncableFileOperationRunner(); 57 virtual ~SyncableFileOperationRunner();
58 58
59 // LocalFileSyncStatus::Observer overrides. 59 // LocalFileSyncStatus::Observer overrides.
60 virtual void OnSyncEnabled(const storage::FileSystemURL& url) OVERRIDE; 60 virtual void OnSyncEnabled(const storage::FileSystemURL& url) override;
61 virtual void OnWriteEnabled(const storage::FileSystemURL& url) OVERRIDE; 61 virtual void OnWriteEnabled(const storage::FileSystemURL& url) override;
62 62
63 // Runs the given |task| if no sync operation is running on any of 63 // Runs the given |task| if no sync operation is running on any of
64 // its target_paths(). This also runs pending tasks that have become 64 // its target_paths(). This also runs pending tasks that have become
65 // runnable (before running the given operation). 65 // runnable (before running the given operation).
66 // If there're ongoing sync tasks on the target_paths this method 66 // If there're ongoing sync tasks on the target_paths this method
67 // just queues up the |task|. 67 // just queues up the |task|.
68 // Pending tasks are cancelled when this class is destructed. 68 // Pending tasks are cancelled when this class is destructed.
69 void PostOperationTask(scoped_ptr<Task> task); 69 void PostOperationTask(scoped_ptr<Task> task);
70 70
71 // Runs a next runnable task (if there's any). 71 // Runs a next runnable task (if there's any).
(...skipping 23 matching lines...) Expand all
95 95
96 const int64 max_inflight_tasks_; 96 const int64 max_inflight_tasks_;
97 int64 num_inflight_tasks_; 97 int64 num_inflight_tasks_;
98 98
99 DISALLOW_COPY_AND_ASSIGN(SyncableFileOperationRunner); 99 DISALLOW_COPY_AND_ASSIGN(SyncableFileOperationRunner);
100 }; 100 };
101 101
102 } // namespace sync_file_system 102 } // namespace sync_file_system
103 103
104 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_OPERATION_RUNNER_ H_ 104 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_SYNCABLE_FILE_OPERATION_RUNNER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698