| 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_SYNC_ENGINE_INITIALIZER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_INITIALIZER_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_INITIALIZER_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_INITIALIZER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 12 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
| 13 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 14 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" | 17 #include "chrome/browser/sync_file_system/drive_backend/sync_task.h" |
| 15 #include "chrome/browser/sync_file_system/sync_callbacks.h" | 18 #include "chrome/browser/sync_file_system/sync_callbacks.h" |
| 16 #include "google_apis/drive/drive_api_error_codes.h" | 19 #include "google_apis/drive/drive_api_error_codes.h" |
| 17 #include "google_apis/drive/drive_common_callbacks.h" | 20 #include "google_apis/drive/drive_common_callbacks.h" |
| 18 | 21 |
| 19 namespace drive { | 22 namespace drive { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 leveldb::Env* env_override_; | 106 leveldb::Env* env_override_; |
| 104 | 107 |
| 105 google_apis::CancelCallback cancel_callback_; | 108 google_apis::CancelCallback cancel_callback_; |
| 106 base::FilePath database_path_; | 109 base::FilePath database_path_; |
| 107 | 110 |
| 108 int find_sync_root_retry_count_; | 111 int find_sync_root_retry_count_; |
| 109 | 112 |
| 110 scoped_ptr<MetadataDatabase> metadata_database_; | 113 scoped_ptr<MetadataDatabase> metadata_database_; |
| 111 ScopedVector<google_apis::FileResource> app_root_folders_; | 114 ScopedVector<google_apis::FileResource> app_root_folders_; |
| 112 | 115 |
| 113 int64 largest_change_id_; | 116 int64_t largest_change_id_; |
| 114 std::string root_folder_id_; | 117 std::string root_folder_id_; |
| 115 | 118 |
| 116 scoped_ptr<google_apis::FileResource> sync_root_folder_; | 119 scoped_ptr<google_apis::FileResource> sync_root_folder_; |
| 117 | 120 |
| 118 base::WeakPtrFactory<SyncEngineInitializer> weak_ptr_factory_; | 121 base::WeakPtrFactory<SyncEngineInitializer> weak_ptr_factory_; |
| 119 | 122 |
| 120 DISALLOW_COPY_AND_ASSIGN(SyncEngineInitializer); | 123 DISALLOW_COPY_AND_ASSIGN(SyncEngineInitializer); |
| 121 }; | 124 }; |
| 122 | 125 |
| 123 } // namespace drive_backend | 126 } // namespace drive_backend |
| 124 } // namespace sync_file_system | 127 } // namespace sync_file_system |
| 125 | 128 |
| 126 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_INITIALIZER
_H_ | 129 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_ENGINE_INITIALIZER
_H_ |
| OLD | NEW |