Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(920)

Unified Diff: sync/internal_api/public/base_transaction.h

Issue 10844005: [Sync] Refactor GetEncryptedTypes usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Always trigger OnEncryptedTypesChanged on init Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/public/base_transaction.h
diff --git a/sync/internal_api/public/base_transaction.h b/sync/internal_api/public/base_transaction.h
index f097fb30dfa18b5934f3521a9d88499e25f49c40..242a6b93545780d0cd96d4ced7d9ef64e5d2af67 100644
--- a/sync/internal_api/public/base_transaction.h
+++ b/sync/internal_api/public/base_transaction.h
@@ -7,6 +7,7 @@
#include "sync/internal_api/public/user_share.h"
+#include "sync/internal_api/public/base/model_type.h"
#include "sync/util/cryptographer.h"
namespace syncer {
@@ -28,6 +29,7 @@ class BaseTransaction {
// Provide access to the underlying syncable objects from BaseNode.
virtual syncable::BaseTransaction* GetWrappedTrans() const = 0;
Cryptographer* GetCryptographer() const;
+ ModelTypeSet GetEncryptedTypes() const;
syncable::Directory* GetDirectory() const {
return directory_;
@@ -45,8 +47,6 @@ class BaseTransaction {
DISALLOW_COPY_AND_ASSIGN(BaseTransaction);
};
-ModelTypeSet GetEncryptedTypes(const BaseTransaction* trans);
-
} // namespace syncer
#endif // SYNC_INTERNAL_API_PUBLIC_BASE_TRANSACTION_H_

Powered by Google App Engine
This is Rietveld 408576698