| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
| 18 #include "chrome/browser/sync/engine/model_safe_worker.h" | |
| 19 #include "chrome/browser/sync/glue/backend_data_type_configurer.h" | 18 #include "chrome/browser/sync/glue/backend_data_type_configurer.h" |
| 20 #include "chrome/browser/sync/glue/chrome_extensions_activity_monitor.h" | 19 #include "chrome/browser/sync/glue/chrome_extensions_activity_monitor.h" |
| 21 #include "chrome/browser/sync/glue/chrome_sync_notification_bridge.h" | 20 #include "chrome/browser/sync/glue/chrome_sync_notification_bridge.h" |
| 22 #include "chrome/browser/sync/internal_api/configure_reason.h" | 21 #include "chrome/browser/sync/internal_api/configure_reason.h" |
| 23 #include "chrome/browser/sync/internal_api/includes/report_unrecoverable_error_f
unction.h" | |
| 24 #include "chrome/browser/sync/internal_api/includes/unrecoverable_error_handler.
h" | |
| 25 #include "chrome/browser/sync/internal_api/sync_manager.h" | 22 #include "chrome/browser/sync/internal_api/sync_manager.h" |
| 26 #include "chrome/browser/sync/notifier/sync_notifier_factory.h" | 23 #include "chrome/browser/sync/notifier/sync_notifier_factory.h" |
| 27 #include "chrome/browser/sync/protocol/sync_protocol_error.h" | |
| 28 #include "chrome/browser/sync/syncable/model_type.h" | |
| 29 #include "chrome/browser/sync/util/weak_handle.h" | |
| 30 #include "chrome/common/net/gaia/google_service_auth_error.h" | 24 #include "chrome/common/net/gaia/google_service_auth_error.h" |
| 31 #include "googleurl/src/gurl.h" | 25 #include "googleurl/src/gurl.h" |
| 26 #include "sync/engine/model_safe_worker.h" |
| 32 #include "sync/protocol/encryption.pb.h" | 27 #include "sync/protocol/encryption.pb.h" |
| 28 #include "sync/protocol/sync_protocol_error.h" |
| 29 #include "sync/syncable/model_type.h" |
| 30 #include "sync/util/report_unrecoverable_error_function.h" |
| 31 #include "sync/util/unrecoverable_error_handler.h" |
| 32 #include "sync/util/weak_handle.h" |
| 33 | 33 |
| 34 class MessageLoop; | 34 class MessageLoop; |
| 35 class Profile; | 35 class Profile; |
| 36 | 36 |
| 37 namespace browser_sync { | 37 namespace browser_sync { |
| 38 | 38 |
| 39 namespace sessions { | 39 namespace sessions { |
| 40 struct SyncSessionSnapshot; | 40 struct SyncSessionSnapshot; |
| 41 } | 41 } |
| 42 | 42 |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 | 510 |
| 511 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. | 511 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. |
| 512 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; | 512 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; |
| 513 | 513 |
| 514 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 514 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 515 }; | 515 }; |
| 516 | 516 |
| 517 } // namespace browser_sync | 517 } // namespace browser_sync |
| 518 | 518 |
| 519 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 519 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |