| OLD | NEW |
| 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_WRAPPER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_WRAPPER_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_WRAPPER_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_WRAPPER_H_ |
| 7 | 7 |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "chrome/browser/drive/drive_service_interface.h" | 9 #include "chrome/browser/drive/drive_service_interface.h" |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 const google_apis::FileListCallback& callback); | 53 const google_apis::FileListCallback& callback); |
| 54 | 54 |
| 55 void GetResourceEntry( | 55 void GetResourceEntry( |
| 56 const std::string& resource_id, | 56 const std::string& resource_id, |
| 57 const google_apis::GetResourceEntryCallback& callback); | 57 const google_apis::GetResourceEntryCallback& callback); |
| 58 | 58 |
| 59 void GetFileListInDirectory( | 59 void GetFileListInDirectory( |
| 60 const std::string& directory_resource_id, | 60 const std::string& directory_resource_id, |
| 61 const google_apis::FileListCallback& callback); | 61 const google_apis::FileListCallback& callback); |
| 62 | 62 |
| 63 bool HasRefreshToken() const; | |
| 64 | |
| 65 void RemoveResourceFromDirectory( | 63 void RemoveResourceFromDirectory( |
| 66 const std::string& parent_resource_id, | 64 const std::string& parent_resource_id, |
| 67 const std::string& resource_id, | 65 const std::string& resource_id, |
| 68 const google_apis::EntryActionCallback& callback); | 66 const google_apis::EntryActionCallback& callback); |
| 69 | 67 |
| 70 void SearchByTitle( | 68 void SearchByTitle( |
| 71 const std::string& title, | 69 const std::string& title, |
| 72 const std::string& directory_resource_id, | 70 const std::string& directory_resource_id, |
| 73 const google_apis::FileListCallback& callback); | 71 const google_apis::FileListCallback& callback); |
| 74 | 72 |
| 75 private: | 73 private: |
| 76 drive::DriveServiceInterface* drive_service_; | 74 drive::DriveServiceInterface* drive_service_; |
| 77 | 75 |
| 78 DISALLOW_COPY_AND_ASSIGN(DriveServiceWrapper); | 76 DISALLOW_COPY_AND_ASSIGN(DriveServiceWrapper); |
| 79 }; | 77 }; |
| 80 | 78 |
| 81 } // namespace drive_backend | 79 } // namespace drive_backend |
| 82 } // namespace sync_file_system | 80 } // namespace sync_file_system |
| 83 | 81 |
| 84 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_WRAPPER_H
_ | 82 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_WRAPPER_H
_ |
| OLD | NEW |