| 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_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "chrome/browser/sync/js_event_handler_list.h" | 24 #include "chrome/browser/sync/js_event_handler_list.h" |
| 25 #include "chrome/browser/sync/profile_sync_service_observer.h" | 25 #include "chrome/browser/sync/profile_sync_service_observer.h" |
| 26 #include "chrome/browser/sync/signin_manager.h" | 26 #include "chrome/browser/sync/signin_manager.h" |
| 27 #include "chrome/browser/sync/sync_setup_wizard.h" | 27 #include "chrome/browser/sync/sync_setup_wizard.h" |
| 28 #include "chrome/browser/sync/syncable/model_type.h" | 28 #include "chrome/browser/sync/syncable/model_type.h" |
| 29 #include "chrome/browser/sync/unrecoverable_error_handler.h" | 29 #include "chrome/browser/sync/unrecoverable_error_handler.h" |
| 30 #include "chrome/common/net/gaia/google_service_auth_error.h" | 30 #include "chrome/common/net/gaia/google_service_auth_error.h" |
| 31 #include "content/common/notification_observer.h" | 31 #include "content/common/notification_observer.h" |
| 32 #include "content/common/notification_registrar.h" | 32 #include "content/common/notification_registrar.h" |
| 33 #include "googleurl/src/gurl.h" | 33 #include "googleurl/src/gurl.h" |
| 34 #include "jingle/notifier/base/notifier_options.h" | |
| 35 | 34 |
| 36 class NotificationDetails; | 35 class NotificationDetails; |
| 37 class NotificationSource; | 36 class NotificationSource; |
| 38 class NotificationType; | 37 class NotificationType; |
| 39 class Profile; | 38 class Profile; |
| 40 class ProfileSyncFactory; | 39 class ProfileSyncFactory; |
| 41 class TabContents; | 40 class TabContents; |
| 42 class TokenMigrator; | 41 class TokenMigrator; |
| 43 | 42 |
| 44 namespace browser_sync { | 43 namespace browser_sync { |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 | 589 |
| 591 // True if an unrecoverable error (e.g. violation of an assumed invariant) | 590 // True if an unrecoverable error (e.g. violation of an assumed invariant) |
| 592 // occurred during syncer operation. This value should be checked before | 591 // occurred during syncer operation. This value should be checked before |
| 593 // doing any work that might corrupt things further. | 592 // doing any work that might corrupt things further. |
| 594 bool unrecoverable_error_detected_; | 593 bool unrecoverable_error_detected_; |
| 595 | 594 |
| 596 // A message sent when an unrecoverable error occurred. | 595 // A message sent when an unrecoverable error occurred. |
| 597 std::string unrecoverable_error_message_; | 596 std::string unrecoverable_error_message_; |
| 598 scoped_ptr<tracked_objects::Location> unrecoverable_error_location_; | 597 scoped_ptr<tracked_objects::Location> unrecoverable_error_location_; |
| 599 | 598 |
| 600 // Contains options specific to how sync clients send and listen to | |
| 601 // notifications. | |
| 602 notifier::NotifierOptions notifier_options_; | |
| 603 | |
| 604 // Manages the start and stop of the various data types. | 599 // Manages the start and stop of the various data types. |
| 605 scoped_ptr<browser_sync::DataTypeManager> data_type_manager_; | 600 scoped_ptr<browser_sync::DataTypeManager> data_type_manager_; |
| 606 | 601 |
| 607 ObserverList<Observer> observers_; | 602 ObserverList<Observer> observers_; |
| 608 | 603 |
| 609 browser_sync::JsEventHandlerList js_event_handlers_; | 604 browser_sync::JsEventHandlerList js_event_handlers_; |
| 610 | 605 |
| 611 NotificationRegistrar registrar_; | 606 NotificationRegistrar registrar_; |
| 612 | 607 |
| 613 ScopedRunnableMethodFactory<ProfileSyncService> | 608 ScopedRunnableMethodFactory<ProfileSyncService> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 base::OneShotTimer<ProfileSyncService> clear_server_data_timer_; | 651 base::OneShotTimer<ProfileSyncService> clear_server_data_timer_; |
| 657 | 652 |
| 658 // The set of encrypted types. This is updated whenever datatypes are | 653 // The set of encrypted types. This is updated whenever datatypes are |
| 659 // encrypted through the OnEncryptionComplete callback of SyncFrontend. | 654 // encrypted through the OnEncryptionComplete callback of SyncFrontend. |
| 660 syncable::ModelTypeSet encrypted_types_; | 655 syncable::ModelTypeSet encrypted_types_; |
| 661 | 656 |
| 662 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 657 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 663 }; | 658 }; |
| 664 | 659 |
| 665 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 660 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |