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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/drive_service_wrapper.cc

Issue 2910913002: WIP.
Patch Set: rebase Created 3 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
OLDNEW
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 "components/drive/service/drive_service_interface.h" 10 #include "components/drive/service/drive_service_interface.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 void DriveServiceWrapper::GetFileResource( 91 void DriveServiceWrapper::GetFileResource(
92 const std::string& resource_id, 92 const std::string& resource_id,
93 const google_apis::FileResourceCallback& callback) { 93 const google_apis::FileResourceCallback& callback) {
94 DCHECK(sequece_checker_.CalledOnValidSequence()); 94 DCHECK(sequece_checker_.CalledOnValidSequence());
95 drive_service_->GetFileResource(resource_id, callback); 95 drive_service_->GetFileResource(resource_id, callback);
96 } 96 }
97 97
98 void DriveServiceWrapper::GetFileListInDirectory( 98 void DriveServiceWrapper::GetFileListInDirectory(
99 const std::string& directory_resource_id, 99 const std::string& directory_resource_id,
100 const std::string& team_drive_id,
100 const google_apis::FileListCallback& callback) { 101 const google_apis::FileListCallback& callback) {
101 DCHECK(sequece_checker_.CalledOnValidSequence()); 102 DCHECK(sequece_checker_.CalledOnValidSequence());
102 drive_service_->GetFileListInDirectory(directory_resource_id, callback); 103 drive_service_->GetFileListInDirectory(directory_resource_id, team_drive_id,
104 callback);
103 } 105 }
104 106
105 void DriveServiceWrapper::RemoveResourceFromDirectory( 107 void DriveServiceWrapper::RemoveResourceFromDirectory(
106 const std::string& parent_resource_id, 108 const std::string& parent_resource_id,
107 const std::string& resource_id, 109 const std::string& resource_id,
108 const google_apis::EntryActionCallback& callback) { 110 const google_apis::EntryActionCallback& callback) {
109 DCHECK(sequece_checker_.CalledOnValidSequence()); 111 DCHECK(sequece_checker_.CalledOnValidSequence());
110 drive_service_->RemoveResourceFromDirectory( 112 drive_service_->RemoveResourceFromDirectory(
111 parent_resource_id, resource_id, callback); 113 parent_resource_id, resource_id, callback);
112 } 114 }
113 115
114 void DriveServiceWrapper::SearchByTitle( 116 void DriveServiceWrapper::SearchByTitle(
115 const std::string& title, 117 const std::string& title,
116 const std::string& directory_resource_id, 118 const std::string& directory_resource_id,
117 const google_apis::FileListCallback& callback) { 119 const google_apis::FileListCallback& callback) {
118 DCHECK(sequece_checker_.CalledOnValidSequence()); 120 DCHECK(sequece_checker_.CalledOnValidSequence());
119 drive_service_->SearchByTitle( 121 drive_service_->SearchByTitle(
120 title, directory_resource_id, callback); 122 title, directory_resource_id, callback);
121 } 123 }
122 124
123 } // namespace drive_backend 125 } // namespace drive_backend
124 } // namespace sync_file_system 126 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698