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_LOCAL_LOCAL_FILE_SYNC_CONTEXT_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_CONTEXT_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_CONTEXT_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_CONTEXT_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 std::map<storage::FileSystemContext*, StatusCallbackQueue> | 353 std::map<storage::FileSystemContext*, StatusCallbackQueue> |
354 pending_initialize_callbacks_; | 354 pending_initialize_callbacks_; |
355 | 355 |
356 // A URL and associated callback waiting for sync is enabled. | 356 // A URL and associated callback waiting for sync is enabled. |
357 // Accessed only on IO thread. | 357 // Accessed only on IO thread. |
358 storage::FileSystemURL url_waiting_sync_on_io_; | 358 storage::FileSystemURL url_waiting_sync_on_io_; |
359 base::Closure url_syncable_callback_; | 359 base::Closure url_syncable_callback_; |
360 | 360 |
361 // Used only on IO thread for available changes notifications. | 361 // Used only on IO thread for available changes notifications. |
362 base::Time last_notified_changes_; | 362 base::Time last_notified_changes_; |
363 scoped_ptr<base::OneShotTimer<LocalFileSyncContext> > timer_on_io_; | 363 scoped_ptr<base::OneShotTimer> timer_on_io_; |
364 std::vector<base::Closure> pending_completion_callbacks_; | 364 std::vector<base::Closure> pending_completion_callbacks_; |
365 std::set<GURL> origins_with_pending_changes_; | 365 std::set<GURL> origins_with_pending_changes_; |
366 | 366 |
367 // Populated while root directory deletion is being handled for | 367 // Populated while root directory deletion is being handled for |
368 // ApplyRemoteChange(). Modified only on IO thread. | 368 // ApplyRemoteChange(). Modified only on IO thread. |
369 scoped_ptr<RootDeleteHelper> root_delete_helper_; | 369 scoped_ptr<RootDeleteHelper> root_delete_helper_; |
370 | 370 |
371 base::ObserverList<LocalOriginChangeObserver> origin_change_observers_; | 371 base::ObserverList<LocalOriginChangeObserver> origin_change_observers_; |
372 | 372 |
373 int mock_notify_changes_duration_in_sec_; | 373 int mock_notify_changes_duration_in_sec_; |
374 | 374 |
375 DISALLOW_COPY_AND_ASSIGN(LocalFileSyncContext); | 375 DISALLOW_COPY_AND_ASSIGN(LocalFileSyncContext); |
376 }; | 376 }; |
377 | 377 |
378 } // namespace sync_file_system | 378 } // namespace sync_file_system |
379 | 379 |
380 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_CONTEXT_H_ | 380 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_CONTEXT_H_ |
OLD | NEW |