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

Issue 413833002: sync: Introduce CryptographerProvider interface (Closed)

Created:
6 years, 5 months ago by rlarocque
Modified:
6 years, 5 months ago
Reviewers:
stanisc, Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

sync: Introduce CryptographerProvider interface Creates a CryptographerProvider interface that can be used to expose the syncable::Directory's Cryptographer without exposing the directory itself. Since the directory's cryptographer is protected by a lock, this requires the creation of several helper classes to manage the acquistion of the lock. This CL includes the interface, an implementationthat exposes the directory's cryptographer (DirectoryCryptographerProvider) and a SimpleCryptographerProvider that wraps a non-owned Cryptographer for testing purposes. These interfaces will be used to implement and test encryption of non-blocking sync types. BUG=351005 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285777

Patch Set 1 #

Patch Set 2 : Typo fix and small cleanup #

Total comments: 7

Patch Set 3 : Fix namespace braces #

Patch Set 4 : s/ScopedCryptographer/ScopedCryptographerRef/ #

Total comments: 6

Patch Set 5 : Renames #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -0 lines) Patch
A sync/engine/cryptographer_provider.h View 1 2 3 4 1 chunk +64 lines, -0 lines 0 comments Download
A sync/engine/cryptographer_provider.cc View 1 2 3 4 1 chunk +42 lines, -0 lines 0 comments Download
A sync/engine/directory_cryptographer_provider.h View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
A sync/engine/directory_cryptographer_provider.cc View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
M sync/sync_core.gypi View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M sync/sync_tests.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A sync/test/engine/simple_cryptographer_provider.h View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download
A sync/test/engine/simple_cryptographer_provider.cc View 1 2 3 4 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
rlarocque
Here's the first patch on the road to encryption for non-blocking sync. We should probably ...
6 years, 5 months ago (2014-07-23 20:33:05 UTC) #1
Nicolas Zea
https://codereview.chromium.org/413833002/diff/20001/sync/engine/cryptographer_provider.cc File sync/engine/cryptographer_provider.cc (right): https://codereview.chromium.org/413833002/diff/20001/sync/engine/cryptographer_provider.cc#newcode41 sync/engine/cryptographer_provider.cc:41: }; This is the close namespace right? Shouldn't that ...
6 years, 5 months ago (2014-07-24 22:16:42 UTC) #2
rlarocque
https://codereview.chromium.org/413833002/diff/20001/sync/engine/cryptographer_provider.cc File sync/engine/cryptographer_provider.cc (right): https://codereview.chromium.org/413833002/diff/20001/sync/engine/cryptographer_provider.cc#newcode41 sync/engine/cryptographer_provider.cc:41: }; On 2014/07/24 22:16:42, Nicolas Zea wrote: > This ...
6 years, 5 months ago (2014-07-24 22:23:13 UTC) #3
Nicolas Zea
https://codereview.chromium.org/413833002/diff/20001/sync/engine/cryptographer_provider.h File sync/engine/cryptographer_provider.h (right): https://codereview.chromium.org/413833002/diff/20001/sync/engine/cryptographer_provider.h#newcode32 sync/engine/cryptographer_provider.h:32: class SYNC_EXPORT_PRIVATE ScopedCryptographer { On 2014/07/24 22:23:13, rlarocque wrote: ...
6 years, 5 months ago (2014-07-24 22:34:19 UTC) #4
rlarocque
Renamed to ScopedCryptographerRef.
6 years, 5 months ago (2014-07-25 17:07:57 UTC) #5
Nicolas Zea
LGTM with some naming suggestions. https://codereview.chromium.org/413833002/diff/60001/sync/engine/cryptographer_provider.h File sync/engine/cryptographer_provider.h (right): https://codereview.chromium.org/413833002/diff/60001/sync/engine/cryptographer_provider.h#newcode29 sync/engine/cryptographer_provider.h:29: // A concrete class ...
6 years, 5 months ago (2014-07-25 20:03:31 UTC) #6
rlarocque
https://codereview.chromium.org/413833002/diff/60001/sync/engine/cryptographer_provider.h File sync/engine/cryptographer_provider.h (right): https://codereview.chromium.org/413833002/diff/60001/sync/engine/cryptographer_provider.h#newcode29 sync/engine/cryptographer_provider.h:29: // A concrete class representing a cryptographer. On 2014/07/25 ...
6 years, 5 months ago (2014-07-25 20:18:17 UTC) #7
Nicolas Zea
On 2014/07/25 20:18:17, rlarocque wrote: > https://codereview.chromium.org/413833002/diff/60001/sync/engine/cryptographer_provider.h > File sync/engine/cryptographer_provider.h (right): > > https://codereview.chromium.org/413833002/diff/60001/sync/engine/cryptographer_provider.h#newcode29 > ...
6 years, 5 months ago (2014-07-25 20:19:44 UTC) #8
rlarocque
On 2014/07/25 20:19:44, Nicolas Zea wrote: > On 2014/07/25 20:18:17, rlarocque wrote: > > > ...
6 years, 5 months ago (2014-07-25 20:59:54 UTC) #9
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 5 months ago (2014-07-25 21:00:44 UTC) #10
Nicolas Zea
lgtm
6 years, 5 months ago (2014-07-25 21:01:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/413833002/80001
6 years, 5 months ago (2014-07-25 21:02:27 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-25 23:46:21 UTC) #13
commit-bot: I haz the power
6 years, 5 months ago (2014-07-26 18:34:36 UTC) #14
Message was sent while issue was closed.
Change committed as 285777

Powered by Google App Engine
This is Rietveld 408576698