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

Unified Diff: sync/engine/directory_cryptographer_provider.h

Issue 452283003: sync: Finish non-blocking type encryption support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More cryptographer testing Created 6 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/engine/cryptographer_provider.cc ('k') | sync/engine/directory_cryptographer_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/directory_cryptographer_provider.h
diff --git a/sync/engine/directory_cryptographer_provider.h b/sync/engine/directory_cryptographer_provider.h
deleted file mode 100644
index 36b1c0f90fdaa2e35de4d46c4edf7b4598107321..0000000000000000000000000000000000000000
--- a/sync/engine/directory_cryptographer_provider.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SYNC_ENGINE_DIRECTORY_CRYPTOGRAPHER_PROVIDER_H_
-#define SYNC_ENGINE_DIRECTORY_CRYPTOGRAPHER_PROVIDER_H_
-
-#include "sync/engine/cryptographer_provider.h"
-
-#include "sync/syncable/syncable_read_transaction.h"
-
-namespace syncer {
-
-namespace syncable {
-class Directory;
-}
-
-// Provides access to the Directory's cryptographer through the
-// CryptographerProvider interface.
-class DirectoryCryptographerProvider : public CryptographerProvider {
- public:
- DirectoryCryptographerProvider(syncable::Directory* dir);
- virtual ~DirectoryCryptographerProvider();
-
- virtual bool InitScopedCryptographerRef(
- ScopedCryptographerRef* scoped) OVERRIDE;
-
- private:
- syncable::Directory* dir_;
-};
-
-// An implementation detail of the DirectoryCryptographerProvider. Contains
-// the ReadTransaction used to safely access the Cryptographer.
-class ScopedDirectoryCryptographerInternal
- : public ScopedCryptographerInternal {
- public:
- ScopedDirectoryCryptographerInternal(syncable::Directory* dir);
- virtual ~ScopedDirectoryCryptographerInternal();
-
- virtual Cryptographer* Get() const OVERRIDE;
-
- private:
- syncable::Directory* dir_;
- syncable::ReadTransaction trans_;
-
- DISALLOW_COPY_AND_ASSIGN(ScopedDirectoryCryptographerInternal);
-};
-
-} // namespace syncer
-
-#endif // SYNC_ENGINE_DIRECTORY_CRYPTOGRAPHER_PROVIDER_H_
« no previous file with comments | « sync/engine/cryptographer_provider.cc ('k') | sync/engine/directory_cryptographer_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698