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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_documents_service.h

Issue 10836125: Add GetChangelist operation for Drive V2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove SetURL() and specify url in the constructor. Created 8 years, 4 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 | Annotate | Revision Log
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_CHROMEOS_GDATA_GDATA_DOCUMENTS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DOCUMENTS_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DOCUMENTS_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DOCUMENTS_SERVICE_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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // string is passed, |directory_resource_id| is ignored. 85 // string is passed, |directory_resource_id| is ignored.
86 // 86 //
87 // Upon completion, invokes |callback| with results on the calling thread. 87 // Upon completion, invokes |callback| with results on the calling thread.
88 // TODO(satorux): Refactor this function: crbug.com/128746 88 // TODO(satorux): Refactor this function: crbug.com/128746
89 virtual void GetDocuments(const GURL& feed_url, 89 virtual void GetDocuments(const GURL& feed_url,
90 int start_changestamp, 90 int start_changestamp,
91 const std::string& search_query, 91 const std::string& search_query,
92 const std::string& directory_resource_id, 92 const std::string& directory_resource_id,
93 const GetDataCallback& callback) = 0; 93 const GetDataCallback& callback) = 0;
94 94
95 // Fetches a changelist from |url| with |start_changestamp|, using Drive V2
96 // API. If this URL is empty the call will use the default URL. Specify |url|
97 // when pagenated request should be issued.
98 // |start_changestamp| specifies the starting point of change list or 0 if
99 // all changes are necessary.
100 // Upon completion, invokes |callback| with results on calling thread.
101 virtual void GetChangelist(const GURL& url,
102 int64 start_changestamp,
103 const GetDataCallback& callback) = 0;
104
95 // Fetches single entry metadata from server. The entry's resource id equals 105 // Fetches single entry metadata from server. The entry's resource id equals
96 // |resource_id|. 106 // |resource_id|.
97 // Upon completion, invokes |callback| with results on the calling thread. 107 // Upon completion, invokes |callback| with results on the calling thread.
98 virtual void GetDocumentEntry(const std::string& resource_id, 108 virtual void GetDocumentEntry(const std::string& resource_id,
99 const GetDataCallback& callback) = 0; 109 const GetDataCallback& callback) = 0;
100 110
101 // Gets the account metadata from the server using the default account 111 // Gets the account metadata from the server using the default account
102 // metadata URL. Upon completion, invokes |callback| with results on the 112 // metadata URL. Upon completion, invokes |callback| with results on the
103 // calling thread. 113 // calling thread.
104 virtual void GetAccountMetadata(const GetDataCallback& callback) = 0; 114 virtual void GetAccountMetadata(const GetDataCallback& callback) = 0;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // DocumentsServiceInterface Overrides 222 // DocumentsServiceInterface Overrides
213 virtual void Initialize(Profile* profile) OVERRIDE; 223 virtual void Initialize(Profile* profile) OVERRIDE;
214 virtual GDataOperationRegistry* operation_registry() const OVERRIDE; 224 virtual GDataOperationRegistry* operation_registry() const OVERRIDE;
215 virtual void CancelAll() OVERRIDE; 225 virtual void CancelAll() OVERRIDE;
216 virtual void Authenticate(const AuthStatusCallback& callback) OVERRIDE; 226 virtual void Authenticate(const AuthStatusCallback& callback) OVERRIDE;
217 virtual void GetDocuments(const GURL& feed_url, 227 virtual void GetDocuments(const GURL& feed_url,
218 int start_changestamp, 228 int start_changestamp,
219 const std::string& search_query, 229 const std::string& search_query,
220 const std::string& directory_resource_id, 230 const std::string& directory_resource_id,
221 const GetDataCallback& callback) OVERRIDE; 231 const GetDataCallback& callback) OVERRIDE;
232 virtual void GetChangelist(const GURL& url,
233 int64 start_changestamp,
234 const GetDataCallback& callback) OVERRIDE;
222 virtual void GetDocumentEntry(const std::string& resource_id, 235 virtual void GetDocumentEntry(const std::string& resource_id,
223 const GetDataCallback& callback) OVERRIDE; 236 const GetDataCallback& callback) OVERRIDE;
224 237
225 virtual void GetAccountMetadata(const GetDataCallback& callback) OVERRIDE; 238 virtual void GetAccountMetadata(const GetDataCallback& callback) OVERRIDE;
226 virtual void GetAboutResource(const GetDataCallback& callback) OVERRIDE; 239 virtual void GetAboutResource(const GetDataCallback& callback) OVERRIDE;
227 virtual void GetApplicationList(const GetDataCallback& callback) OVERRIDE; 240 virtual void GetApplicationList(const GetDataCallback& callback) OVERRIDE;
228 virtual void DeleteDocument(const GURL& document_url, 241 virtual void DeleteDocument(const GURL& document_url,
229 const EntryActionCallback& callback) OVERRIDE; 242 const EntryActionCallback& callback) OVERRIDE;
230 virtual void DownloadDocument( 243 virtual void DownloadDocument(
231 const FilePath& virtual_path, 244 const FilePath& virtual_path,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 Profile* profile_; 284 Profile* profile_;
272 285
273 scoped_ptr<GDataOperationRunner> runner_; 286 scoped_ptr<GDataOperationRunner> runner_;
274 287
275 DISALLOW_COPY_AND_ASSIGN(DocumentsService); 288 DISALLOW_COPY_AND_ASSIGN(DocumentsService);
276 }; 289 };
277 290
278 } // namespace gdata 291 } // namespace gdata
279 292
280 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DOCUMENTS_SERVICE_H_ 293 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DOCUMENTS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/drive_api_operations.cc ('k') | chrome/browser/chromeos/gdata/gdata_documents_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698