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 SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 // be enabled. | 525 // be enabled. |
526 // Note: opens a transaction. May be called on any thread. | 526 // Note: opens a transaction. May be called on any thread. |
527 bool ReceivedExperiment(browser_sync::Experiments* experiments) const; | 527 bool ReceivedExperiment(browser_sync::Experiments* experiments) const; |
528 | 528 |
529 // Uses a read-only transaction to determine if the directory being synced has | 529 // Uses a read-only transaction to determine if the directory being synced has |
530 // any remaining unsynced items. May be called on any thread. | 530 // any remaining unsynced items. May be called on any thread. |
531 bool HasUnsyncedItems() const; | 531 bool HasUnsyncedItems() const; |
532 | 532 |
533 // Functions used for testing. | 533 // Functions used for testing. |
534 | 534 |
535 void TriggerOnNotificationStateChangeForTest( | 535 void SimulateEnableNotificationsForTest(); |
536 bool notifications_enabled); | 536 |
| 537 void SimulateDisableNotificationsForTest(int reason); |
537 | 538 |
538 void TriggerOnIncomingNotificationForTest( | 539 void TriggerOnIncomingNotificationForTest( |
539 syncable::ModelTypeSet model_types); | 540 syncable::ModelTypeSet model_types); |
540 | 541 |
541 static const int kDefaultNudgeDelayMilliseconds; | 542 static const int kDefaultNudgeDelayMilliseconds; |
542 static const int kPreferencesNudgeDelayMilliseconds; | 543 static const int kPreferencesNudgeDelayMilliseconds; |
543 static const int kPiggybackNudgeDelay; | 544 static const int kPiggybackNudgeDelay; |
544 | 545 |
545 static const FilePath::CharType kSyncDatabaseFilename[]; | 546 static const FilePath::CharType kSyncDatabaseFilename[]; |
546 | 547 |
(...skipping 24 matching lines...) Expand all Loading... |
571 sync_api::UserShare* share); | 572 sync_api::UserShare* share); |
572 | 573 |
573 const char* ConnectionStatusToString(ConnectionStatus status); | 574 const char* ConnectionStatusToString(ConnectionStatus status); |
574 | 575 |
575 // Returns the string representation of a PassphraseRequiredReason value. | 576 // Returns the string representation of a PassphraseRequiredReason value. |
576 const char* PassphraseRequiredReasonToString(PassphraseRequiredReason reason); | 577 const char* PassphraseRequiredReasonToString(PassphraseRequiredReason reason); |
577 | 578 |
578 } // namespace sync_api | 579 } // namespace sync_api |
579 | 580 |
580 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ | 581 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ |
OLD | NEW |