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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 void GetChangeList( | 43 void GetChangeList( |
44 int64 start_changestamp, | 44 int64 start_changestamp, |
45 const google_apis::ChangeListCallback& callback); | 45 const google_apis::ChangeListCallback& callback); |
46 | 46 |
47 void GetRemainingChangeList( | 47 void GetRemainingChangeList( |
48 const GURL& next_link, | 48 const GURL& next_link, |
49 const google_apis::ChangeListCallback& callback); | 49 const google_apis::ChangeListCallback& callback); |
50 | 50 |
51 void GetRemainingFileList( | 51 void GetRemainingFileList( |
52 const GURL& next_link, | 52 const GURL& next_link, |
53 const google_apis::GetResourceListCallback& 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 GetResourceListInDirectory( | 59 void GetFileListInDirectory( |
60 const std::string& directory_resource_id, | 60 const std::string& directory_resource_id, |
61 const google_apis::GetResourceListCallback& callback); | 61 const google_apis::FileListCallback& callback); |
62 | 62 |
63 bool HasRefreshToken() const; | 63 bool HasRefreshToken() const; |
64 | 64 |
65 void RemoveResourceFromDirectory( | 65 void RemoveResourceFromDirectory( |
66 const std::string& parent_resource_id, | 66 const std::string& parent_resource_id, |
67 const std::string& resource_id, | 67 const std::string& resource_id, |
68 const google_apis::EntryActionCallback& callback); | 68 const google_apis::EntryActionCallback& callback); |
69 | 69 |
70 void SearchByTitle( | 70 void SearchByTitle( |
71 const std::string& title, | 71 const std::string& title, |
72 const std::string& directory_resource_id, | 72 const std::string& directory_resource_id, |
73 const google_apis::GetResourceListCallback& callback); | 73 const google_apis::FileListCallback& callback); |
74 | 74 |
75 private: | 75 private: |
76 drive::DriveServiceInterface* drive_service_; | 76 drive::DriveServiceInterface* drive_service_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(DriveServiceWrapper); | 78 DISALLOW_COPY_AND_ASSIGN(DriveServiceWrapper); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace drive_backend | 81 } // namespace drive_backend |
82 } // namespace sync_file_system | 82 } // namespace sync_file_system |
83 | 83 |
84 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_WRAPPER_H
_ | 84 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_WRAPPER_H
_ |
OLD | NEW |