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

Unified Diff: sync/util/cryptographer.h

Issue 10844005: [Sync] Refactor GetEncryptedTypes usage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + add dcheck 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
« no previous file with comments | « sync/test/fake_sync_encryption_handler.cc ('k') | sync/util/cryptographer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/util/cryptographer.h
diff --git a/sync/util/cryptographer.h b/sync/util/cryptographer.h
index 6f9ab5c399021c5dd2c6ed75f566389ac89491de..77a164f75a7e508237c4320b04e336ca1dbcf9a9 100644
--- a/sync/util/cryptographer.h
+++ b/sync/util/cryptographer.h
@@ -11,7 +11,6 @@
#include "base/gtest_prod_util.h"
#include "base/memory/linked_ptr.h"
#include "base/memory/scoped_ptr.h"
-#include "sync/internal_api/public/base/model_type.h"
#include "sync/protocol/encryption.pb.h"
#include "sync/util/nigori.h"
@@ -24,11 +23,6 @@ namespace syncer {
class Encryptor;
-namespace syncable {
-class BaseTransaction;
-class NigoriHandler;
-}
-
extern const char kNigoriTag[];
// The parameters used to initialize a Nigori instance.
@@ -58,19 +52,6 @@ class Cryptographer {
explicit Cryptographer(Encryptor* encryptor);
~Cryptographer();
- // Set the sync nigori node handler.
- // TODO(zea): refactor so that Cryptographer doesn't need any connection
- // to a NigoriHandler. crbug.com/139848
- void SetNigoriHandler(syncable::NigoriHandler* delegate);
-
- // NigoriHandler delegator methods (passes through to delegate).
- void ApplyNigoriUpdate(const sync_pb::NigoriSpecifics& nigori,
- syncable::BaseTransaction* const trans);
- void UpdateNigoriFromEncryptedTypes(
- sync_pb::NigoriSpecifics* nigori,
- syncable::BaseTransaction* const trans) const;
- ModelTypeSet GetEncryptedTypes() const;
-
// |restored_bootstrap_token| can be provided via this method to bootstrap
// Cryptographer instance into the ready state (is_ready will be true).
// It must be a string that was previously built by the
@@ -209,10 +190,6 @@ class Cryptographer {
scoped_ptr<sync_pb::EncryptedData> pending_keys_;
- // The sync nigori node handler. Necessary until we decouple the encrypted
- // types from the cryptographer.
- syncable::NigoriHandler* nigori_node_handler_;
-
DISALLOW_COPY_AND_ASSIGN(Cryptographer);
};
« no previous file with comments | « sync/test/fake_sync_encryption_handler.cc ('k') | sync/util/cryptographer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698