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 #include "chrome/browser/sync_file_system/drive_backend/drive_service_wrapper.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/drive_service_wrapper.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chrome/browser/drive/drive_service_interface.h" | 10 #include "chrome/browser/drive/drive_service_interface.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 const google_apis::GetResourceEntryCallback& callback) { | 79 const google_apis::GetResourceEntryCallback& callback) { |
80 drive_service_->GetResourceEntry(resource_id, callback); | 80 drive_service_->GetResourceEntry(resource_id, callback); |
81 } | 81 } |
82 | 82 |
83 void DriveServiceWrapper::GetFileListInDirectory( | 83 void DriveServiceWrapper::GetFileListInDirectory( |
84 const std::string& directory_resource_id, | 84 const std::string& directory_resource_id, |
85 const google_apis::FileListCallback& callback) { | 85 const google_apis::FileListCallback& callback) { |
86 drive_service_->GetFileListInDirectory(directory_resource_id, callback); | 86 drive_service_->GetFileListInDirectory(directory_resource_id, callback); |
87 } | 87 } |
88 | 88 |
89 bool DriveServiceWrapper::HasRefreshToken() const { | |
90 return drive_service_->HasRefreshToken(); | |
91 } | |
92 | |
93 void DriveServiceWrapper::RemoveResourceFromDirectory( | 89 void DriveServiceWrapper::RemoveResourceFromDirectory( |
94 const std::string& parent_resource_id, | 90 const std::string& parent_resource_id, |
95 const std::string& resource_id, | 91 const std::string& resource_id, |
96 const google_apis::EntryActionCallback& callback) { | 92 const google_apis::EntryActionCallback& callback) { |
97 drive_service_->RemoveResourceFromDirectory( | 93 drive_service_->RemoveResourceFromDirectory( |
98 parent_resource_id, resource_id, callback); | 94 parent_resource_id, resource_id, callback); |
99 } | 95 } |
100 | 96 |
101 void DriveServiceWrapper::SearchByTitle( | 97 void DriveServiceWrapper::SearchByTitle( |
102 const std::string& title, | 98 const std::string& title, |
103 const std::string& directory_resource_id, | 99 const std::string& directory_resource_id, |
104 const google_apis::FileListCallback& callback) { | 100 const google_apis::FileListCallback& callback) { |
105 drive_service_->SearchByTitle( | 101 drive_service_->SearchByTitle( |
106 title, directory_resource_id, callback); | 102 title, directory_resource_id, callback); |
107 } | 103 } |
108 | 104 |
109 } // namespace drive_backend | 105 } // namespace drive_backend |
110 } // namespace sync_file_system | 106 } // namespace sync_file_system |
OLD | NEW |