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

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

Issue 309253002: [SyncFS] SyncWorker cache refresh token status (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename again Created 6 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 | Annotate | Revision Log
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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698