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_SYNC_MANAGER_H_ | 5 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "sync/util/report_unrecoverable_error_function.h" | 22 #include "sync/util/report_unrecoverable_error_function.h" |
23 #include "sync/util/unrecoverable_error_handler.h" | 23 #include "sync/util/unrecoverable_error_handler.h" |
24 #include "sync/util/weak_handle.h" | 24 #include "sync/util/weak_handle.h" |
25 | 25 |
26 namespace browser_sync { | 26 namespace browser_sync { |
27 class Encryptor; | 27 class Encryptor; |
28 class ExtensionsActivityMonitor; | 28 class ExtensionsActivityMonitor; |
29 class JsBackend; | 29 class JsBackend; |
30 class JsEventHandler; | 30 class JsEventHandler; |
31 class ModelSafeWorkerRegistrar; | 31 class ModelSafeWorkerRegistrar; |
| 32 struct SyncExperiments; |
32 | 33 |
33 namespace sessions { | 34 namespace sessions { |
34 class SyncSessionSnapshot; | 35 class SyncSessionSnapshot; |
35 } // namespace sessions | 36 } // namespace sessions |
36 } // namespace browser_sync | 37 } // namespace browser_sync |
37 | 38 |
38 namespace sync_notifier { | 39 namespace sync_notifier { |
39 class SyncNotifier; | 40 class SyncNotifier; |
40 } // namespace sync_notifier | 41 } // namespace sync_notifier |
41 | 42 |
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 void EnableEncryptEverything(); | 585 void EnableEncryptEverything(); |
585 | 586 |
586 // Returns true if we are currently encrypting all sync data. May | 587 // Returns true if we are currently encrypting all sync data. May |
587 // be called on any thread. | 588 // be called on any thread. |
588 bool EncryptEverythingEnabledForTest() const; | 589 bool EncryptEverythingEnabledForTest() const; |
589 | 590 |
590 // Gets the set of encrypted types from the cryptographer | 591 // Gets the set of encrypted types from the cryptographer |
591 // Note: opens a transaction. May be called from any thread. | 592 // Note: opens a transaction. May be called from any thread. |
592 syncable::ModelTypeSet GetEncryptedDataTypesForTest() const; | 593 syncable::ModelTypeSet GetEncryptedDataTypesForTest() const; |
593 | 594 |
594 // Reads the nigori node to determine if any experimental types should be | 595 // Reads the nigori node to determine if any experimental features should |
595 // enabled. | 596 // be enabled. |
596 // Note: opens a transaction. May be called on any thread. | 597 // Note: opens a transaction. May be called on any thread. |
597 bool ReceivedExperimentalTypes(syncable::ModelTypeSet* to_add) const; | 598 bool ReceivedExperiment(browser_sync::SyncExperiments* experiments) const; |
598 | 599 |
599 // Uses a read-only transaction to determine if the directory being synced has | 600 // Uses a read-only transaction to determine if the directory being synced has |
600 // any remaining unsynced items. May be called on any thread. | 601 // any remaining unsynced items. May be called on any thread. |
601 bool HasUnsyncedItems() const; | 602 bool HasUnsyncedItems() const; |
602 | 603 |
603 // Functions used for testing. | 604 // Functions used for testing. |
604 | 605 |
605 void TriggerOnNotificationStateChangeForTest( | 606 void TriggerOnNotificationStateChangeForTest( |
606 bool notifications_enabled); | 607 bool notifications_enabled); |
607 | 608 |
(...skipping 27 matching lines...) Expand all Loading... |
635 sync_api::UserShare* share); | 636 sync_api::UserShare* share); |
636 | 637 |
637 const char* ConnectionStatusToString(ConnectionStatus status); | 638 const char* ConnectionStatusToString(ConnectionStatus status); |
638 | 639 |
639 // Returns the string representation of a PassphraseRequiredReason value. | 640 // Returns the string representation of a PassphraseRequiredReason value. |
640 const char* PassphraseRequiredReasonToString(PassphraseRequiredReason reason); | 641 const char* PassphraseRequiredReasonToString(PassphraseRequiredReason reason); |
641 | 642 |
642 } // namespace sync_api | 643 } // namespace sync_api |
643 | 644 |
644 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ | 645 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ |
OLD | NEW |