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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/drive_service_on_worker.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DRIVE_SERVICE_ON_WORKER_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_ON_WORKER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_ON_WORKER_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_ON_WORKER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/sequence_checker.h" 10 #include "base/sequence_checker.h"
(...skipping 18 matching lines...) Expand all
29 DriveServiceOnWorker( 29 DriveServiceOnWorker(
30 const base::WeakPtr<DriveServiceWrapper>& wrapper, 30 const base::WeakPtr<DriveServiceWrapper>& wrapper,
31 base::SingleThreadTaskRunner* ui_task_runner, 31 base::SingleThreadTaskRunner* ui_task_runner,
32 base::SequencedTaskRunner* worker_task_runner); 32 base::SequencedTaskRunner* worker_task_runner);
33 virtual ~DriveServiceOnWorker(); 33 virtual ~DriveServiceOnWorker();
34 34
35 virtual google_apis::CancelCallback AddNewDirectory( 35 virtual google_apis::CancelCallback AddNewDirectory(
36 const std::string& parent_resource_id, 36 const std::string& parent_resource_id,
37 const std::string& directory_title, 37 const std::string& directory_title,
38 const AddNewDirectoryOptions& options, 38 const AddNewDirectoryOptions& options,
39 const google_apis::FileResourceCallback& callback) OVERRIDE; 39 const google_apis::FileResourceCallback& callback) override;
40 40
41 virtual google_apis::CancelCallback DeleteResource( 41 virtual google_apis::CancelCallback DeleteResource(
42 const std::string& resource_id, 42 const std::string& resource_id,
43 const std::string& etag, 43 const std::string& etag,
44 const google_apis::EntryActionCallback& callback) OVERRIDE; 44 const google_apis::EntryActionCallback& callback) override;
45 45
46 virtual google_apis::CancelCallback DownloadFile( 46 virtual google_apis::CancelCallback DownloadFile(
47 const base::FilePath& local_cache_path, 47 const base::FilePath& local_cache_path,
48 const std::string& resource_id, 48 const std::string& resource_id,
49 const google_apis::DownloadActionCallback& download_action_callback, 49 const google_apis::DownloadActionCallback& download_action_callback,
50 const google_apis::GetContentCallback& get_content_callback, 50 const google_apis::GetContentCallback& get_content_callback,
51 const google_apis::ProgressCallback& progress_callback) OVERRIDE; 51 const google_apis::ProgressCallback& progress_callback) override;
52 52
53 virtual google_apis::CancelCallback GetAboutResource( 53 virtual google_apis::CancelCallback GetAboutResource(
54 const google_apis::AboutResourceCallback& callback) OVERRIDE; 54 const google_apis::AboutResourceCallback& callback) override;
55 55
56 virtual google_apis::CancelCallback GetChangeList( 56 virtual google_apis::CancelCallback GetChangeList(
57 int64 start_changestamp, 57 int64 start_changestamp,
58 const google_apis::ChangeListCallback& callback) OVERRIDE; 58 const google_apis::ChangeListCallback& callback) override;
59 59
60 virtual google_apis::CancelCallback GetRemainingChangeList( 60 virtual google_apis::CancelCallback GetRemainingChangeList(
61 const GURL& next_link, 61 const GURL& next_link,
62 const google_apis::ChangeListCallback& callback) OVERRIDE; 62 const google_apis::ChangeListCallback& callback) override;
63 63
64 virtual std::string GetRootResourceId() const OVERRIDE; 64 virtual std::string GetRootResourceId() const override;
65 65
66 virtual google_apis::CancelCallback GetRemainingFileList( 66 virtual google_apis::CancelCallback GetRemainingFileList(
67 const GURL& next_link, 67 const GURL& next_link,
68 const google_apis::FileListCallback& callback) OVERRIDE; 68 const google_apis::FileListCallback& callback) override;
69 69
70 virtual google_apis::CancelCallback GetFileResource( 70 virtual google_apis::CancelCallback GetFileResource(
71 const std::string& resource_id, 71 const std::string& resource_id,
72 const google_apis::FileResourceCallback& callback) OVERRIDE; 72 const google_apis::FileResourceCallback& callback) override;
73 73
74 virtual google_apis::CancelCallback GetFileListInDirectory( 74 virtual google_apis::CancelCallback GetFileListInDirectory(
75 const std::string& directory_resource_id, 75 const std::string& directory_resource_id,
76 const google_apis::FileListCallback& callback) OVERRIDE; 76 const google_apis::FileListCallback& callback) override;
77 77
78 virtual google_apis::CancelCallback RemoveResourceFromDirectory( 78 virtual google_apis::CancelCallback RemoveResourceFromDirectory(
79 const std::string& parent_resource_id, 79 const std::string& parent_resource_id,
80 const std::string& resource_id, 80 const std::string& resource_id,
81 const google_apis::EntryActionCallback& callback) OVERRIDE; 81 const google_apis::EntryActionCallback& callback) override;
82 82
83 virtual google_apis::CancelCallback SearchByTitle( 83 virtual google_apis::CancelCallback SearchByTitle(
84 const std::string& title, 84 const std::string& title,
85 const std::string& directory_resource_id, 85 const std::string& directory_resource_id,
86 const google_apis::FileListCallback& callback) OVERRIDE; 86 const google_apis::FileListCallback& callback) override;
87 87
88 virtual bool HasRefreshToken() const OVERRIDE; 88 virtual bool HasRefreshToken() const override;
89 89
90 // Following virtual methods are expected not to be accessed at all. 90 // Following virtual methods are expected not to be accessed at all.
91 virtual void Initialize(const std::string& account_id) OVERRIDE; 91 virtual void Initialize(const std::string& account_id) override;
92 virtual void AddObserver(drive::DriveServiceObserver* observer) OVERRIDE; 92 virtual void AddObserver(drive::DriveServiceObserver* observer) override;
93 virtual void RemoveObserver(drive::DriveServiceObserver* observer) OVERRIDE; 93 virtual void RemoveObserver(drive::DriveServiceObserver* observer) override;
94 virtual bool CanSendRequest() const OVERRIDE; 94 virtual bool CanSendRequest() const override;
95 virtual bool HasAccessToken() const OVERRIDE; 95 virtual bool HasAccessToken() const override;
96 virtual void RequestAccessToken( 96 virtual void RequestAccessToken(
97 const google_apis::AuthStatusCallback& callback) OVERRIDE; 97 const google_apis::AuthStatusCallback& callback) override;
98 virtual void ClearAccessToken() OVERRIDE; 98 virtual void ClearAccessToken() override;
99 virtual void ClearRefreshToken() OVERRIDE; 99 virtual void ClearRefreshToken() override;
100 virtual google_apis::CancelCallback GetAllFileList( 100 virtual google_apis::CancelCallback GetAllFileList(
101 const google_apis::FileListCallback& callback) OVERRIDE; 101 const google_apis::FileListCallback& callback) override;
102 virtual google_apis::CancelCallback Search( 102 virtual google_apis::CancelCallback Search(
103 const std::string& search_query, 103 const std::string& search_query,
104 const google_apis::FileListCallback& callback) OVERRIDE; 104 const google_apis::FileListCallback& callback) override;
105 virtual google_apis::CancelCallback GetShareUrl( 105 virtual google_apis::CancelCallback GetShareUrl(
106 const std::string& resource_id, 106 const std::string& resource_id,
107 const GURL& embed_origin, 107 const GURL& embed_origin,
108 const google_apis::GetShareUrlCallback& callback) OVERRIDE; 108 const google_apis::GetShareUrlCallback& callback) override;
109 virtual google_apis::CancelCallback GetAppList( 109 virtual google_apis::CancelCallback GetAppList(
110 const google_apis::AppListCallback& callback) OVERRIDE; 110 const google_apis::AppListCallback& callback) override;
111 virtual google_apis::CancelCallback TrashResource( 111 virtual google_apis::CancelCallback TrashResource(
112 const std::string& resource_id, 112 const std::string& resource_id,
113 const google_apis::EntryActionCallback& callback) OVERRIDE; 113 const google_apis::EntryActionCallback& callback) override;
114 virtual google_apis::CancelCallback CopyResource( 114 virtual google_apis::CancelCallback CopyResource(
115 const std::string& resource_id, 115 const std::string& resource_id,
116 const std::string& parent_resource_id, 116 const std::string& parent_resource_id,
117 const std::string& new_title, 117 const std::string& new_title,
118 const base::Time& last_modified, 118 const base::Time& last_modified,
119 const google_apis::FileResourceCallback& callback) OVERRIDE; 119 const google_apis::FileResourceCallback& callback) override;
120 virtual google_apis::CancelCallback UpdateResource( 120 virtual google_apis::CancelCallback UpdateResource(
121 const std::string& resource_id, 121 const std::string& resource_id,
122 const std::string& parent_resource_id, 122 const std::string& parent_resource_id,
123 const std::string& new_title, 123 const std::string& new_title,
124 const base::Time& last_modified, 124 const base::Time& last_modified,
125 const base::Time& last_viewed_by_me, 125 const base::Time& last_viewed_by_me,
126 const google_apis::FileResourceCallback& callback) OVERRIDE; 126 const google_apis::FileResourceCallback& callback) override;
127 virtual google_apis::CancelCallback AddResourceToDirectory( 127 virtual google_apis::CancelCallback AddResourceToDirectory(
128 const std::string& parent_resource_id, 128 const std::string& parent_resource_id,
129 const std::string& resource_id, 129 const std::string& resource_id,
130 const google_apis::EntryActionCallback& callback) OVERRIDE; 130 const google_apis::EntryActionCallback& callback) override;
131 virtual google_apis::CancelCallback InitiateUploadNewFile( 131 virtual google_apis::CancelCallback InitiateUploadNewFile(
132 const std::string& content_type, 132 const std::string& content_type,
133 int64 content_length, 133 int64 content_length,
134 const std::string& parent_resource_id, 134 const std::string& parent_resource_id,
135 const std::string& title, 135 const std::string& title,
136 const InitiateUploadNewFileOptions& options, 136 const InitiateUploadNewFileOptions& options,
137 const google_apis::InitiateUploadCallback& callback) OVERRIDE; 137 const google_apis::InitiateUploadCallback& callback) override;
138 virtual google_apis::CancelCallback InitiateUploadExistingFile( 138 virtual google_apis::CancelCallback InitiateUploadExistingFile(
139 const std::string& content_type, 139 const std::string& content_type,
140 int64 content_length, 140 int64 content_length,
141 const std::string& resource_id, 141 const std::string& resource_id,
142 const InitiateUploadExistingFileOptions& options, 142 const InitiateUploadExistingFileOptions& options,
143 const google_apis::InitiateUploadCallback& callback) OVERRIDE; 143 const google_apis::InitiateUploadCallback& callback) override;
144 virtual google_apis::CancelCallback ResumeUpload( 144 virtual google_apis::CancelCallback ResumeUpload(
145 const GURL& upload_url, 145 const GURL& upload_url,
146 int64 start_position, 146 int64 start_position,
147 int64 end_position, 147 int64 end_position,
148 int64 content_length, 148 int64 content_length,
149 const std::string& content_type, 149 const std::string& content_type,
150 const base::FilePath& local_file_path, 150 const base::FilePath& local_file_path,
151 const google_apis::drive::UploadRangeCallback& callback, 151 const google_apis::drive::UploadRangeCallback& callback,
152 const google_apis::ProgressCallback& progress_callback) OVERRIDE; 152 const google_apis::ProgressCallback& progress_callback) override;
153 virtual google_apis::CancelCallback GetUploadStatus( 153 virtual google_apis::CancelCallback GetUploadStatus(
154 const GURL& upload_url, 154 const GURL& upload_url,
155 int64 content_length, 155 int64 content_length,
156 const google_apis::drive::UploadRangeCallback& callback) OVERRIDE; 156 const google_apis::drive::UploadRangeCallback& callback) override;
157 virtual google_apis::CancelCallback AuthorizeApp( 157 virtual google_apis::CancelCallback AuthorizeApp(
158 const std::string& resource_id, 158 const std::string& resource_id,
159 const std::string& app_id, 159 const std::string& app_id,
160 const google_apis::AuthorizeAppCallback& callback) OVERRIDE; 160 const google_apis::AuthorizeAppCallback& callback) override;
161 virtual google_apis::CancelCallback UninstallApp( 161 virtual google_apis::CancelCallback UninstallApp(
162 const std::string& app_id, 162 const std::string& app_id,
163 const google_apis::EntryActionCallback& callback) OVERRIDE; 163 const google_apis::EntryActionCallback& callback) override;
164 virtual google_apis::CancelCallback AddPermission( 164 virtual google_apis::CancelCallback AddPermission(
165 const std::string& resource_id, 165 const std::string& resource_id,
166 const std::string& email, 166 const std::string& email,
167 google_apis::drive::PermissionRole role, 167 google_apis::drive::PermissionRole role,
168 const google_apis::EntryActionCallback& callback) OVERRIDE; 168 const google_apis::EntryActionCallback& callback) override;
169 169
170 private: 170 private:
171 base::WeakPtr<DriveServiceWrapper> wrapper_; 171 base::WeakPtr<DriveServiceWrapper> wrapper_;
172 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; 172 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
173 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_; 173 scoped_refptr<base::SequencedTaskRunner> worker_task_runner_;
174 174
175 base::SequenceChecker sequence_checker_; 175 base::SequenceChecker sequence_checker_;
176 176
177 DISALLOW_COPY_AND_ASSIGN(DriveServiceOnWorker); 177 DISALLOW_COPY_AND_ASSIGN(DriveServiceOnWorker);
178 }; 178 };
179 179
180 } // namespace drive_backend 180 } // namespace drive_backend
181 } // namespace sync_file_system 181 } // namespace sync_file_system
182 182
183 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_ON_WORKER _H_ 183 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_ON_WORKER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698