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

Side by Side Diff: sync/test/engine/simple_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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/sync_tests.gypi ('k') | sync/test/engine/simple_cryptographer_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SYNC_TEST_ENGINE_SIMPLE_CRYPTOGRAPHER_PROVIDER_H_
6 #define SYNC_TEST_ENGINE_SIMPLE_CRYPTOGRAPHER_PROVIDER_H_
7
8 #include "sync/engine/cryptographer_provider.h"
9
10 #include "sync/util/cryptographer.h"
11
12 namespace syncer {
13
14 // A trivial cryptographer provider. Exposes the given Cryptographer through
15 // the CryptographerProvider interface. Does not take ownership of the
16 // |cryptographer|.
17 class SimpleCryptographerProvider : public CryptographerProvider {
18 public:
19 explicit SimpleCryptographerProvider(Cryptographer* cryptographer);
20 virtual ~SimpleCryptographerProvider();
21
22 // Implementation of CryptographerProvider.
23 virtual bool InitScopedCryptographerRef(
24 ScopedCryptographerRef* scoped) OVERRIDE;
25
26 private:
27 Cryptographer* cryptographer_;
28 };
29
30 class SimpleScopedCryptographerInternal : public ScopedCryptographerInternal {
31 public:
32 explicit SimpleScopedCryptographerInternal(Cryptographer* cryptographer);
33 virtual ~SimpleScopedCryptographerInternal();
34
35 // Implementation of ScopedCryptographerInternal.
36 virtual Cryptographer* Get() const OVERRIDE;
37
38 private:
39 Cryptographer* cryptographer_;
40 };
41
42 } // namespace syncer
43
44 #endif // SYNC_TEST_ENGINE_SIMPLE_CRYPTOGRAPHER_PROVIDER_H_
OLDNEW
« no previous file with comments | « sync/sync_tests.gypi ('k') | sync/test/engine/simple_cryptographer_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698