OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 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_ |
| 7 |
| 8 #include "base/memory/weak_ptr.h" |
| 9 #include "chrome/browser/drive/drive_service_interface.h" |
| 10 |
| 11 namespace sync_file_system { |
| 12 namespace drive_backend { |
| 13 |
| 14 // This class is a partial wrapper of drive::DriveServiceInterface class, |
| 15 // and supports weak pointer. |
| 16 class DriveServiceWrapper : public base::SupportsWeakPtr<DriveServiceWrapper> { |
| 17 public: |
| 18 DriveServiceWrapper(drive::DriveServiceInterface* drive_service); |
| 19 ~DriveServiceWrapper(); |
| 20 |
| 21 drive::DriveServiceInterface* GetDriveService(); |
| 22 |
| 23 private: |
| 24 drive::DriveServiceInterface* drive_service_; |
| 25 }; |
| 26 |
| 27 } // namespace drive_backend |
| 28 } // namespace sync_file_system |
| 29 |
| 30 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_DRIVE_SERVICE_WRAPPER_H
_ |
OLD | NEW |