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

Side by Side Diff: chrome/browser/drive/drive_api_service.h

Issue 625113002: replace OVERRIDE and FINAL with override and final in chrome/browser/[a-i]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix newly added OVERRIDEs 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_DRIVE_DRIVE_API_SERVICE_H_ 5 #ifndef CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_
6 #define CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_ 6 #define CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 OAuth2TokenService* oauth2_token_service, 55 OAuth2TokenService* oauth2_token_service,
56 net::URLRequestContextGetter* url_request_context_getter, 56 net::URLRequestContextGetter* url_request_context_getter,
57 base::SequencedTaskRunner* blocking_task_runner, 57 base::SequencedTaskRunner* blocking_task_runner,
58 const GURL& base_url, 58 const GURL& base_url,
59 const GURL& base_download_url, 59 const GURL& base_download_url,
60 const GURL& wapi_base_url, 60 const GURL& wapi_base_url,
61 const std::string& custom_user_agent); 61 const std::string& custom_user_agent);
62 virtual ~DriveAPIService(); 62 virtual ~DriveAPIService();
63 63
64 // DriveServiceInterface Overrides 64 // DriveServiceInterface Overrides
65 virtual void Initialize(const std::string& account_id) OVERRIDE; 65 virtual void Initialize(const std::string& account_id) override;
66 virtual void AddObserver(DriveServiceObserver* observer) OVERRIDE; 66 virtual void AddObserver(DriveServiceObserver* observer) override;
67 virtual void RemoveObserver(DriveServiceObserver* observer) OVERRIDE; 67 virtual void RemoveObserver(DriveServiceObserver* observer) override;
68 virtual bool CanSendRequest() const OVERRIDE; 68 virtual bool CanSendRequest() const override;
69 virtual bool HasAccessToken() const OVERRIDE; 69 virtual bool HasAccessToken() const override;
70 virtual void RequestAccessToken( 70 virtual void RequestAccessToken(
71 const google_apis::AuthStatusCallback& callback) OVERRIDE; 71 const google_apis::AuthStatusCallback& callback) override;
72 virtual bool HasRefreshToken() const OVERRIDE; 72 virtual bool HasRefreshToken() const override;
73 virtual void ClearAccessToken() OVERRIDE; 73 virtual void ClearAccessToken() override;
74 virtual void ClearRefreshToken() OVERRIDE; 74 virtual void ClearRefreshToken() override;
75 virtual std::string GetRootResourceId() const OVERRIDE; 75 virtual std::string GetRootResourceId() const override;
76 virtual google_apis::CancelCallback GetAllFileList( 76 virtual google_apis::CancelCallback GetAllFileList(
77 const google_apis::FileListCallback& callback) OVERRIDE; 77 const google_apis::FileListCallback& callback) override;
78 virtual google_apis::CancelCallback GetFileListInDirectory( 78 virtual google_apis::CancelCallback GetFileListInDirectory(
79 const std::string& directory_resource_id, 79 const std::string& directory_resource_id,
80 const google_apis::FileListCallback& callback) OVERRIDE; 80 const google_apis::FileListCallback& callback) override;
81 virtual google_apis::CancelCallback Search( 81 virtual google_apis::CancelCallback Search(
82 const std::string& search_query, 82 const std::string& search_query,
83 const google_apis::FileListCallback& callback) OVERRIDE; 83 const google_apis::FileListCallback& callback) override;
84 virtual google_apis::CancelCallback SearchByTitle( 84 virtual google_apis::CancelCallback SearchByTitle(
85 const std::string& title, 85 const std::string& title,
86 const std::string& directory_resource_id, 86 const std::string& directory_resource_id,
87 const google_apis::FileListCallback& callback) OVERRIDE; 87 const google_apis::FileListCallback& callback) override;
88 virtual google_apis::CancelCallback GetChangeList( 88 virtual google_apis::CancelCallback GetChangeList(
89 int64 start_changestamp, 89 int64 start_changestamp,
90 const google_apis::ChangeListCallback& callback) OVERRIDE; 90 const google_apis::ChangeListCallback& callback) override;
91 virtual google_apis::CancelCallback GetRemainingChangeList( 91 virtual google_apis::CancelCallback GetRemainingChangeList(
92 const GURL& next_link, 92 const GURL& next_link,
93 const google_apis::ChangeListCallback& callback) OVERRIDE; 93 const google_apis::ChangeListCallback& callback) override;
94 virtual google_apis::CancelCallback GetRemainingFileList( 94 virtual google_apis::CancelCallback GetRemainingFileList(
95 const GURL& next_link, 95 const GURL& next_link,
96 const google_apis::FileListCallback& callback) OVERRIDE; 96 const google_apis::FileListCallback& callback) override;
97 virtual google_apis::CancelCallback GetFileResource( 97 virtual google_apis::CancelCallback GetFileResource(
98 const std::string& resource_id, 98 const std::string& resource_id,
99 const google_apis::FileResourceCallback& callback) OVERRIDE; 99 const google_apis::FileResourceCallback& callback) override;
100 virtual google_apis::CancelCallback GetShareUrl( 100 virtual google_apis::CancelCallback GetShareUrl(
101 const std::string& resource_id, 101 const std::string& resource_id,
102 const GURL& embed_origin, 102 const GURL& embed_origin,
103 const google_apis::GetShareUrlCallback& callback) OVERRIDE; 103 const google_apis::GetShareUrlCallback& callback) override;
104 virtual google_apis::CancelCallback GetAboutResource( 104 virtual google_apis::CancelCallback GetAboutResource(
105 const google_apis::AboutResourceCallback& callback) OVERRIDE; 105 const google_apis::AboutResourceCallback& callback) override;
106 virtual google_apis::CancelCallback GetAppList( 106 virtual google_apis::CancelCallback GetAppList(
107 const google_apis::AppListCallback& callback) OVERRIDE; 107 const google_apis::AppListCallback& callback) override;
108 virtual google_apis::CancelCallback DeleteResource( 108 virtual google_apis::CancelCallback DeleteResource(
109 const std::string& resource_id, 109 const std::string& resource_id,
110 const std::string& etag, 110 const std::string& etag,
111 const google_apis::EntryActionCallback& callback) OVERRIDE; 111 const google_apis::EntryActionCallback& callback) override;
112 virtual google_apis::CancelCallback TrashResource( 112 virtual google_apis::CancelCallback TrashResource(
113 const std::string& resource_id, 113 const std::string& resource_id,
114 const google_apis::EntryActionCallback& callback) OVERRIDE; 114 const google_apis::EntryActionCallback& callback) override;
115 virtual google_apis::CancelCallback DownloadFile( 115 virtual google_apis::CancelCallback DownloadFile(
116 const base::FilePath& local_cache_path, 116 const base::FilePath& local_cache_path,
117 const std::string& resource_id, 117 const std::string& resource_id,
118 const google_apis::DownloadActionCallback& download_action_callback, 118 const google_apis::DownloadActionCallback& download_action_callback,
119 const google_apis::GetContentCallback& get_content_callback, 119 const google_apis::GetContentCallback& get_content_callback,
120 const google_apis::ProgressCallback& progress_callback) OVERRIDE; 120 const google_apis::ProgressCallback& progress_callback) override;
121 virtual google_apis::CancelCallback CopyResource( 121 virtual google_apis::CancelCallback CopyResource(
122 const std::string& resource_id, 122 const std::string& resource_id,
123 const std::string& parent_resource_id, 123 const std::string& parent_resource_id,
124 const std::string& new_title, 124 const std::string& new_title,
125 const base::Time& last_modified, 125 const base::Time& last_modified,
126 const google_apis::FileResourceCallback& callback) OVERRIDE; 126 const google_apis::FileResourceCallback& callback) override;
127 virtual google_apis::CancelCallback UpdateResource( 127 virtual google_apis::CancelCallback UpdateResource(
128 const std::string& resource_id, 128 const std::string& resource_id,
129 const std::string& parent_resource_id, 129 const std::string& parent_resource_id,
130 const std::string& new_title, 130 const std::string& new_title,
131 const base::Time& last_modified, 131 const base::Time& last_modified,
132 const base::Time& last_viewed_by_me, 132 const base::Time& last_viewed_by_me,
133 const google_apis::FileResourceCallback& callback) OVERRIDE; 133 const google_apis::FileResourceCallback& callback) override;
134 virtual google_apis::CancelCallback AddResourceToDirectory( 134 virtual google_apis::CancelCallback AddResourceToDirectory(
135 const std::string& parent_resource_id, 135 const std::string& parent_resource_id,
136 const std::string& resource_id, 136 const std::string& resource_id,
137 const google_apis::EntryActionCallback& callback) OVERRIDE; 137 const google_apis::EntryActionCallback& callback) override;
138 virtual google_apis::CancelCallback RemoveResourceFromDirectory( 138 virtual google_apis::CancelCallback RemoveResourceFromDirectory(
139 const std::string& parent_resource_id, 139 const std::string& parent_resource_id,
140 const std::string& resource_id, 140 const std::string& resource_id,
141 const google_apis::EntryActionCallback& callback) OVERRIDE; 141 const google_apis::EntryActionCallback& callback) override;
142 virtual google_apis::CancelCallback AddNewDirectory( 142 virtual google_apis::CancelCallback AddNewDirectory(
143 const std::string& parent_resource_id, 143 const std::string& parent_resource_id,
144 const std::string& directory_title, 144 const std::string& directory_title,
145 const AddNewDirectoryOptions& options, 145 const AddNewDirectoryOptions& options,
146 const google_apis::FileResourceCallback& callback) OVERRIDE; 146 const google_apis::FileResourceCallback& callback) override;
147 virtual google_apis::CancelCallback InitiateUploadNewFile( 147 virtual google_apis::CancelCallback InitiateUploadNewFile(
148 const std::string& content_type, 148 const std::string& content_type,
149 int64 content_length, 149 int64 content_length,
150 const std::string& parent_resource_id, 150 const std::string& parent_resource_id,
151 const std::string& title, 151 const std::string& title,
152 const InitiateUploadNewFileOptions& options, 152 const InitiateUploadNewFileOptions& options,
153 const google_apis::InitiateUploadCallback& callback) OVERRIDE; 153 const google_apis::InitiateUploadCallback& callback) override;
154 virtual google_apis::CancelCallback InitiateUploadExistingFile( 154 virtual google_apis::CancelCallback InitiateUploadExistingFile(
155 const std::string& content_type, 155 const std::string& content_type,
156 int64 content_length, 156 int64 content_length,
157 const std::string& resource_id, 157 const std::string& resource_id,
158 const InitiateUploadExistingFileOptions& options, 158 const InitiateUploadExistingFileOptions& options,
159 const google_apis::InitiateUploadCallback& callback) OVERRIDE; 159 const google_apis::InitiateUploadCallback& callback) override;
160 virtual google_apis::CancelCallback ResumeUpload( 160 virtual google_apis::CancelCallback ResumeUpload(
161 const GURL& upload_url, 161 const GURL& upload_url,
162 int64 start_position, 162 int64 start_position,
163 int64 end_position, 163 int64 end_position,
164 int64 content_length, 164 int64 content_length,
165 const std::string& content_type, 165 const std::string& content_type,
166 const base::FilePath& local_file_path, 166 const base::FilePath& local_file_path,
167 const google_apis::drive::UploadRangeCallback& callback, 167 const google_apis::drive::UploadRangeCallback& callback,
168 const google_apis::ProgressCallback& progress_callback) OVERRIDE; 168 const google_apis::ProgressCallback& progress_callback) override;
169 virtual google_apis::CancelCallback GetUploadStatus( 169 virtual google_apis::CancelCallback GetUploadStatus(
170 const GURL& upload_url, 170 const GURL& upload_url,
171 int64 content_length, 171 int64 content_length,
172 const google_apis::drive::UploadRangeCallback& callback) OVERRIDE; 172 const google_apis::drive::UploadRangeCallback& callback) override;
173 virtual google_apis::CancelCallback AuthorizeApp( 173 virtual google_apis::CancelCallback AuthorizeApp(
174 const std::string& resource_id, 174 const std::string& resource_id,
175 const std::string& app_id, 175 const std::string& app_id,
176 const google_apis::AuthorizeAppCallback& callback) OVERRIDE; 176 const google_apis::AuthorizeAppCallback& callback) override;
177 virtual google_apis::CancelCallback UninstallApp( 177 virtual google_apis::CancelCallback UninstallApp(
178 const std::string& app_id, 178 const std::string& app_id,
179 const google_apis::EntryActionCallback& callback) OVERRIDE; 179 const google_apis::EntryActionCallback& callback) override;
180 virtual google_apis::CancelCallback AddPermission( 180 virtual google_apis::CancelCallback AddPermission(
181 const std::string& resource_id, 181 const std::string& resource_id,
182 const std::string& email, 182 const std::string& email,
183 google_apis::drive::PermissionRole role, 183 google_apis::drive::PermissionRole role,
184 const google_apis::EntryActionCallback& callback) OVERRIDE; 184 const google_apis::EntryActionCallback& callback) override;
185 185
186 private: 186 private:
187 // AuthServiceObserver override. 187 // AuthServiceObserver override.
188 virtual void OnOAuth2RefreshTokenChanged() OVERRIDE; 188 virtual void OnOAuth2RefreshTokenChanged() override;
189 189
190 OAuth2TokenService* oauth2_token_service_; 190 OAuth2TokenService* oauth2_token_service_;
191 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; 191 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
192 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_; 192 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner_;
193 scoped_ptr<google_apis::RequestSender> sender_; 193 scoped_ptr<google_apis::RequestSender> sender_;
194 ObserverList<DriveServiceObserver> observers_; 194 ObserverList<DriveServiceObserver> observers_;
195 google_apis::DriveApiUrlGenerator url_generator_; 195 google_apis::DriveApiUrlGenerator url_generator_;
196 google_apis::GDataWapiUrlGenerator wapi_url_generator_; 196 google_apis::GDataWapiUrlGenerator wapi_url_generator_;
197 const std::string custom_user_agent_; 197 const std::string custom_user_agent_;
198 198
199 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); 199 DISALLOW_COPY_AND_ASSIGN(DriveAPIService);
200 }; 200 };
201 201
202 } // namespace drive 202 } // namespace drive
203 203
204 #endif // CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_ 204 #endif // CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/test_download_shelf.h ('k') | chrome/browser/drive/drive_app_registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698