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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 } | 63 } |
64 | 64 |
65 void DriveServiceWrapper::GetRemainingChangeList( | 65 void DriveServiceWrapper::GetRemainingChangeList( |
66 const GURL& next_link, | 66 const GURL& next_link, |
67 const google_apis::ChangeListCallback& callback) { | 67 const google_apis::ChangeListCallback& callback) { |
68 drive_service_->GetRemainingChangeList(next_link, callback); | 68 drive_service_->GetRemainingChangeList(next_link, callback); |
69 } | 69 } |
70 | 70 |
71 void DriveServiceWrapper::GetRemainingFileList( | 71 void DriveServiceWrapper::GetRemainingFileList( |
72 const GURL& next_link, | 72 const GURL& next_link, |
73 const google_apis::GetResourceListCallback& callback) { | 73 const google_apis::FileListCallback& callback) { |
74 drive_service_->GetRemainingFileList(next_link, callback); | 74 drive_service_->GetRemainingFileList(next_link, callback); |
75 } | 75 } |
76 | 76 |
77 void DriveServiceWrapper::GetResourceEntry( | 77 void DriveServiceWrapper::GetResourceEntry( |
78 const std::string& resource_id, | 78 const std::string& resource_id, |
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::GetResourceListInDirectory( | 83 void DriveServiceWrapper::GetFileListInDirectory( |
84 const std::string& directory_resource_id, | 84 const std::string& directory_resource_id, |
85 const google_apis::GetResourceListCallback& callback) { | 85 const google_apis::FileListCallback& callback) { |
86 drive_service_->GetResourceListInDirectory(directory_resource_id, | 86 drive_service_->GetFileListInDirectory(directory_resource_id, callback); |
87 callback); | |
88 } | 87 } |
89 | 88 |
90 bool DriveServiceWrapper::HasRefreshToken() const { | 89 bool DriveServiceWrapper::HasRefreshToken() const { |
91 return drive_service_->HasRefreshToken(); | 90 return drive_service_->HasRefreshToken(); |
92 } | 91 } |
93 | 92 |
94 void DriveServiceWrapper::RemoveResourceFromDirectory( | 93 void DriveServiceWrapper::RemoveResourceFromDirectory( |
95 const std::string& parent_resource_id, | 94 const std::string& parent_resource_id, |
96 const std::string& resource_id, | 95 const std::string& resource_id, |
97 const google_apis::EntryActionCallback& callback) { | 96 const google_apis::EntryActionCallback& callback) { |
98 drive_service_->RemoveResourceFromDirectory( | 97 drive_service_->RemoveResourceFromDirectory( |
99 parent_resource_id, resource_id, callback); | 98 parent_resource_id, resource_id, callback); |
100 } | 99 } |
101 | 100 |
102 void DriveServiceWrapper::SearchByTitle( | 101 void DriveServiceWrapper::SearchByTitle( |
103 const std::string& title, | 102 const std::string& title, |
104 const std::string& directory_resource_id, | 103 const std::string& directory_resource_id, |
105 const google_apis::GetResourceListCallback& callback) { | 104 const google_apis::FileListCallback& callback) { |
106 drive_service_->SearchByTitle( | 105 drive_service_->SearchByTitle( |
107 title, directory_resource_id, callback); | 106 title, directory_resource_id, callback); |
108 } | 107 } |
109 | 108 |
110 } // namespace drive_backend | 109 } // namespace drive_backend |
111 } // namespace sync_file_system | 110 } // namespace sync_file_system |
OLD | NEW |