| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_REGISTER_APP_TASK_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REGISTER_APP_TASK_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REGISTER_APP_TASK_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REGISTER_APP_TASK_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/macros.h" | 11 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" | 13 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" |
| 14 #include "chrome/browser/sync_file_system/sync_callbacks.h" | 14 #include "chrome/browser/sync_file_system/sync_callbacks.h" |
| 15 #include "google_apis/drive/drive_api_error_codes.h" | 15 #include "google_apis/drive/drive_api_error_codes.h" |
| 16 | 16 |
| 17 namespace drive { | 17 namespace drive { |
| 18 class DriveServiceInterface; | 18 class DriveServiceInterface; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace sync_file_system { | 21 namespace sync_file_system { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 46 const SyncStatusCallback& callback); | 46 const SyncStatusCallback& callback); |
| 47 | 47 |
| 48 MetadataDatabase* metadata_database(); | 48 MetadataDatabase* metadata_database(); |
| 49 drive::DriveServiceInterface* drive_service(); | 49 drive::DriveServiceInterface* drive_service(); |
| 50 | 50 |
| 51 SyncEngineContext* sync_context_; // Not owned. | 51 SyncEngineContext* sync_context_; // Not owned. |
| 52 | 52 |
| 53 int create_folder_retry_count_; | 53 int create_folder_retry_count_; |
| 54 std::string app_id_; | 54 std::string app_id_; |
| 55 | 55 |
| 56 scoped_ptr<FolderCreator> folder_creator_; | 56 std::unique_ptr<FolderCreator> folder_creator_; |
| 57 | 57 |
| 58 base::WeakPtrFactory<RegisterAppTask> weak_ptr_factory_; | 58 base::WeakPtrFactory<RegisterAppTask> weak_ptr_factory_; |
| 59 | 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(RegisterAppTask); | 60 DISALLOW_COPY_AND_ASSIGN(RegisterAppTask); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace drive_backend | 63 } // namespace drive_backend |
| 64 } // namespace sync_file_system | 64 } // namespace sync_file_system |
| 65 | 65 |
| 66 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REGISTER_APP_TASK_H_ | 66 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_REGISTER_APP_TASK_H_ |
| OLD | NEW |