| OLD | NEW |
| 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_DRIVE_DRIVE_API_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_API_SERVICE_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_API_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_API_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 virtual void GetDocumentEntry( | 57 virtual void GetDocumentEntry( |
| 58 const std::string& resource_id, | 58 const std::string& resource_id, |
| 59 const gdata::GetDataCallback& callback) OVERRIDE; | 59 const gdata::GetDataCallback& callback) OVERRIDE; |
| 60 | 60 |
| 61 virtual void GetAccountMetadata( | 61 virtual void GetAccountMetadata( |
| 62 const gdata::GetDataCallback& callback) OVERRIDE; | 62 const gdata::GetDataCallback& callback) OVERRIDE; |
| 63 virtual void GetApplicationInfo( | 63 virtual void GetApplicationInfo( |
| 64 const gdata::GetDataCallback& callback) OVERRIDE; | 64 const gdata::GetDataCallback& callback) OVERRIDE; |
| 65 virtual void DeleteDocument( | 65 virtual void DeleteDocument( |
| 66 const GURL& document_url, | 66 const GURL& document_url, |
| 67 const std::string& etag, |
| 67 const gdata::EntryActionCallback& callback) OVERRIDE; | 68 const gdata::EntryActionCallback& callback) OVERRIDE; |
| 68 virtual void DownloadDocument( | 69 virtual void DownloadDocument( |
| 69 const FilePath& virtual_path, | 70 const FilePath& virtual_path, |
| 70 const FilePath& local_cache_path, | 71 const FilePath& local_cache_path, |
| 71 const GURL& content_url, | 72 const GURL& content_url, |
| 72 DocumentExportFormat format, | 73 DocumentExportFormat format, |
| 74 const std::string& etag, |
| 73 const gdata::DownloadActionCallback& callback) OVERRIDE; | 75 const gdata::DownloadActionCallback& callback) OVERRIDE; |
| 74 virtual void DownloadFile( | 76 virtual void DownloadFile( |
| 75 const FilePath& virtual_path, | 77 const FilePath& virtual_path, |
| 76 const FilePath& local_cache_path, | 78 const FilePath& local_cache_path, |
| 77 const GURL& content_url, | 79 const GURL& content_url, |
| 80 const std::string& etag, |
| 78 const gdata::DownloadActionCallback& download_action_callback, | 81 const gdata::DownloadActionCallback& download_action_callback, |
| 79 const gdata::GetContentCallback& get_content_callback) OVERRIDE; | 82 const gdata::GetContentCallback& get_content_callback) OVERRIDE; |
| 80 virtual void CopyDocument(const std::string& resource_id, | 83 virtual void CopyDocument(const std::string& resource_id, |
| 81 const FilePath::StringType& new_name, | 84 const FilePath::StringType& new_name, |
| 82 const gdata::GetDataCallback& callback) OVERRIDE; | 85 const gdata::GetDataCallback& callback) OVERRIDE; |
| 83 virtual void RenameResource( | 86 virtual void RenameResource( |
| 84 const GURL& document_url, | 87 const GURL& document_url, |
| 85 const FilePath::StringType& new_name, | 88 const FilePath::StringType& new_name, |
| 86 const gdata::EntryActionCallback& callback) OVERRIDE; | 89 const gdata::EntryActionCallback& callback) OVERRIDE; |
| 87 virtual void AddResourceToDirectory( | 90 virtual void AddResourceToDirectory( |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 Profile* profile_; | 143 Profile* profile_; |
| 141 scoped_ptr<gdata::OperationRunner> runner_; | 144 scoped_ptr<gdata::OperationRunner> runner_; |
| 142 ObserverList<DriveServiceObserver> observers_; | 145 ObserverList<DriveServiceObserver> observers_; |
| 143 | 146 |
| 144 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); | 147 DISALLOW_COPY_AND_ASSIGN(DriveAPIService); |
| 145 }; | 148 }; |
| 146 | 149 |
| 147 } // namespace drive | 150 } // namespace drive |
| 148 | 151 |
| 149 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_API_SERVICE_H_ | 152 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_API_SERVICE_H_ |
| OLD | NEW |