| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_GLUE_SYNC_BACKEND_HOST_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
| 16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
| 17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 18 #include "base/memory/scoped_ptr.h" |
| 18 #include "base/message_loop.h" | 19 #include "base/message_loop.h" |
| 19 #include "base/synchronization/lock.h" | 20 #include "base/synchronization/lock.h" |
| 20 #include "base/threading/thread.h" | 21 #include "base/threading/thread.h" |
| 21 #include "base/timer.h" | 22 #include "base/timer.h" |
| 22 #include "chrome/browser/sync/engine/configure_reason.h" | 23 #include "chrome/browser/sync/engine/configure_reason.h" |
| 23 #include "chrome/browser/sync/engine/model_safe_worker.h" | 24 #include "chrome/browser/sync/engine/model_safe_worker.h" |
| 24 #include "chrome/browser/sync/glue/ui_model_worker.h" | 25 #include "chrome/browser/sync/glue/ui_model_worker.h" |
| 26 #include "chrome/browser/sync/internal_api/sync_manager.h" |
| 25 #include "chrome/browser/sync/js/js_backend.h" | 27 #include "chrome/browser/sync/js/js_backend.h" |
| 26 #include "chrome/browser/sync/notifier/sync_notifier_factory.h" | 28 #include "chrome/browser/sync/notifier/sync_notifier_factory.h" |
| 27 #include "chrome/browser/sync/syncable/model_type.h" | 29 #include "chrome/browser/sync/syncable/model_type.h" |
| 28 #include "chrome/browser/sync/weak_handle.h" | 30 #include "chrome/browser/sync/weak_handle.h" |
| 29 #include "chrome/common/net/gaia/google_service_auth_error.h" | 31 #include "chrome/common/net/gaia/google_service_auth_error.h" |
| 30 #include "googleurl/src/gurl.h" | 32 #include "googleurl/src/gurl.h" |
| 31 #include "net/url_request/url_request_context_getter.h" | 33 #include "net/url_request/url_request_context_getter.h" |
| 32 | 34 |
| 33 class CancelableTask; | 35 class CancelableTask; |
| 34 class Profile; | 36 class Profile; |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 610 | 612 |
| 611 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. | 613 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. |
| 612 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; | 614 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; |
| 613 | 615 |
| 614 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 616 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 615 }; | 617 }; |
| 616 | 618 |
| 617 } // namespace browser_sync | 619 } // namespace browser_sync |
| 618 | 620 |
| 619 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 621 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |