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

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

Issue 305913002: drive: Replace GetResourceListCallback in DriveServiceInterface with FileListCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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_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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ResourceIdCanonicalizer GetResourceIdCanonicalizer() const OVERRIDE; 69 virtual ResourceIdCanonicalizer GetResourceIdCanonicalizer() const OVERRIDE;
70 virtual bool HasAccessToken() const OVERRIDE; 70 virtual bool HasAccessToken() const OVERRIDE;
71 virtual void RequestAccessToken( 71 virtual void RequestAccessToken(
72 const google_apis::AuthStatusCallback& callback) OVERRIDE; 72 const google_apis::AuthStatusCallback& callback) OVERRIDE;
73 virtual bool HasRefreshToken() const OVERRIDE; 73 virtual bool HasRefreshToken() const OVERRIDE;
74 virtual void ClearAccessToken() OVERRIDE; 74 virtual void ClearAccessToken() OVERRIDE;
75 virtual void ClearRefreshToken() OVERRIDE; 75 virtual void ClearRefreshToken() OVERRIDE;
76 virtual std::string GetRootResourceId() const OVERRIDE; 76 virtual std::string GetRootResourceId() const OVERRIDE;
77 virtual google_apis::CancelCallback GetAllResourceList( 77 virtual google_apis::CancelCallback GetAllFileList(
78 const google_apis::GetResourceListCallback& callback) OVERRIDE; 78 const google_apis::FileListCallback& callback) OVERRIDE;
79 virtual google_apis::CancelCallback GetResourceListInDirectory( 79 virtual google_apis::CancelCallback GetFileListInDirectory(
80 const std::string& directory_resource_id, 80 const std::string& directory_resource_id,
81 const google_apis::GetResourceListCallback& callback) OVERRIDE; 81 const google_apis::FileListCallback& callback) OVERRIDE;
82 virtual google_apis::CancelCallback Search( 82 virtual google_apis::CancelCallback Search(
83 const std::string& search_query, 83 const std::string& search_query,
84 const google_apis::GetResourceListCallback& callback) OVERRIDE; 84 const google_apis::FileListCallback& callback) OVERRIDE;
85 virtual google_apis::CancelCallback SearchByTitle( 85 virtual google_apis::CancelCallback SearchByTitle(
86 const std::string& title, 86 const std::string& title,
87 const std::string& directory_resource_id, 87 const std::string& directory_resource_id,
88 const google_apis::GetResourceListCallback& callback) OVERRIDE; 88 const google_apis::FileListCallback& callback) OVERRIDE;
89 virtual google_apis::CancelCallback GetChangeList( 89 virtual google_apis::CancelCallback GetChangeList(
90 int64 start_changestamp, 90 int64 start_changestamp,
91 const google_apis::ChangeListCallback& callback) OVERRIDE; 91 const google_apis::ChangeListCallback& callback) OVERRIDE;
92 virtual google_apis::CancelCallback GetRemainingChangeList( 92 virtual google_apis::CancelCallback GetRemainingChangeList(
93 const GURL& next_link, 93 const GURL& next_link,
94 const google_apis::ChangeListCallback& callback) OVERRIDE; 94 const google_apis::ChangeListCallback& callback) OVERRIDE;
95 virtual google_apis::CancelCallback GetRemainingFileList( 95 virtual google_apis::CancelCallback GetRemainingFileList(
96 const GURL& next_link, 96 const GURL& next_link,
97 const google_apis::GetResourceListCallback& callback) OVERRIDE; 97 const google_apis::FileListCallback& callback) OVERRIDE;
98 virtual google_apis::CancelCallback GetResourceEntry( 98 virtual google_apis::CancelCallback GetResourceEntry(
99 const std::string& resource_id, 99 const std::string& resource_id,
100 const google_apis::GetResourceEntryCallback& callback) OVERRIDE; 100 const google_apis::GetResourceEntryCallback& callback) OVERRIDE;
101 virtual google_apis::CancelCallback GetShareUrl( 101 virtual google_apis::CancelCallback GetShareUrl(
102 const std::string& resource_id, 102 const std::string& resource_id,
103 const GURL& embed_origin, 103 const GURL& embed_origin,
104 const google_apis::GetShareUrlCallback& callback) OVERRIDE; 104 const google_apis::GetShareUrlCallback& callback) OVERRIDE;
105 virtual google_apis::CancelCallback GetAboutResource( 105 virtual google_apis::CancelCallback GetAboutResource(
106 const google_apis::AboutResourceCallback& callback) OVERRIDE; 106 const google_apis::AboutResourceCallback& callback) OVERRIDE;
107 virtual google_apis::CancelCallback GetAppList( 107 virtual google_apis::CancelCallback GetAppList(
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 google_apis::DriveApiUrlGenerator url_generator_; 200 google_apis::DriveApiUrlGenerator url_generator_;
201 google_apis::GDataWapiUrlGenerator wapi_url_generator_; 201 google_apis::GDataWapiUrlGenerator wapi_url_generator_;
202 const std::string custom_user_agent_; 202 const std::string custom_user_agent_;
203 203
204 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); 204 DISALLOW_COPY_AND_ASSIGN(DriveAPIService);
205 }; 205 };
206 206
207 } // namespace drive 207 } // namespace drive
208 208
209 #endif // CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_ 209 #endif // CHROME_BROWSER_DRIVE_DRIVE_API_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/job_scheduler.cc ('k') | chrome/browser/drive/drive_api_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698