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

Side by Side Diff: sync/test/engine/simple_cryptographer_provider.cc

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/test/engine/simple_cryptographer_provider.h ('k') | sync/util/cryptographer.h » ('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 #include "sync/test/engine/simple_cryptographer_provider.h"
6
7 namespace syncer {
8
9 SimpleCryptographerProvider::SimpleCryptographerProvider(
10 Cryptographer* cryptographer)
11 : cryptographer_(cryptographer) {
12 }
13
14 SimpleCryptographerProvider::~SimpleCryptographerProvider() {
15 }
16
17 bool SimpleCryptographerProvider::InitScopedCryptographerRef(
18 ScopedCryptographerRef* scoped) {
19 scoped->Initialize(new SimpleScopedCryptographerInternal(cryptographer_));
20 return scoped->IsValid();
21 }
22
23 SimpleScopedCryptographerInternal::SimpleScopedCryptographerInternal(
24 Cryptographer* cryptographer)
25 : cryptographer_(cryptographer) {
26 }
27
28 SimpleScopedCryptographerInternal::~SimpleScopedCryptographerInternal() {
29 }
30
31 Cryptographer* SimpleScopedCryptographerInternal::Get() const {
32 return cryptographer_;
33 }
34
35 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/test/engine/simple_cryptographer_provider.h ('k') | sync/util/cryptographer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698