|
[Sync] Add SyncEncryptionHandler
All sync-specific encryption state (types, encrypt everything, explicit
passphrase, keys) is now tracked within the new class SyncEncryptionHandler.
It's owned by the sync manager, and unifies some of the observer logic
we previously had. In addition, it's capable of creating its own
transactions, taking us a step closer to have a nigori datatype.
In addition, we add a NigoriHandler to abstract the chrome-side of
encryption from the sync visible side of encryption.
BUG= 139848
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151833
Total comments: 1
Total comments: 8
Total comments: 49
Total comments: 18
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+2543 lines, -1728 lines) |
Patch |
 |
M |
chrome/browser/sync/DEPS
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host.h
|
View
|
1
2
3
4
5
6
7
8
|
7 chunks |
+13 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/sync_backend_host.cc
|
View
|
1
2
3
4
5
6
7
8
|
13 chunks |
+52 lines, -55 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_bookmark_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/profile_sync_service_password_unittest.cc
|
View
|
|
1 chunk |
+11 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/engine/apply_updates_command_unittest.cc
|
View
|
1
2
3
4
|
8 chunks |
+17 lines, -14 lines |
0 comments
|
Download
|
 |
M |
sync/engine/conflict_resolver.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/engine/syncer_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
15 chunks |
+40 lines, -116 lines |
0 comments
|
Download
|
 |
M |
sync/engine/syncer_util.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
sync/internal_api/debug_info_event_listener.h
|
View
|
1
|
4 chunks |
+10 lines, -8 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/debug_info_event_listener.cc
|
View
|
1
|
2 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
A + |
sync/internal_api/js_sync_encryption_handler_observer.h
|
View
|
|
4 chunks |
+12 lines, -20 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/js_sync_encryption_handler_observer.cc
|
View
|
|
1 chunk |
+109 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/js_sync_encryption_handler_observer_unittest.cc
|
View
|
|
1 chunk |
+158 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/js_sync_manager_observer.h
|
View
|
|
1 chunk |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/js_sync_manager_observer.cc
|
View
|
|
1 chunk |
+0 lines, -52 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/js_sync_manager_observer_unittest.cc
|
View
|
|
3 chunks |
+0 lines, -71 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/public/sync_encryption_handler.h
|
View
|
1
2
3
4
5
|
1 chunk |
+151 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/public/sync_encryption_handler.cc
|
View
|
1
2
3
4
|
1 chunk |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/sync_manager.h
|
View
|
1
2
3
4
5
6
7
8
|
9 chunks |
+5 lines, -112 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/test/fake_sync_manager.h
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/util/sync_string_conversions.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/sync_encryption_handler_impl.h
|
View
|
1
2
3
4
5
|
1 chunk |
+161 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/sync_encryption_handler_impl.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+678 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/internal_api/sync_encryption_handler_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+380 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl.h
|
View
|
1
2
3
4
5
6
7
8
|
9 chunks |
+29 lines, -66 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
14 chunks |
+76 lines, -627 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/sync_manager_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
38 chunks |
+189 lines, -106 lines |
0 comments
|
Download
|
 |
M |
sync/internal_api/test/fake_sync_manager.cc
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+8 lines, -25 lines |
0 comments
|
Download
|
 |
M |
sync/sync.gyp
|
View
|
1
2
3
4
5
6
7
8
9
|
6 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/syncable/nigori_handler.h
|
View
|
1
2
3
4
5
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/syncable/nigori_handler.cc
|
View
|
1
2
3
4
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/nigori_util.h
|
View
|
1
2
3
4
5
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/nigori_util.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+65 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/test/fake_sync_encryption_handler.h
|
View
|
1
2
3
4
5
|
1 chunk |
+66 lines, -0 lines |
0 comments
|
Download
|
 |
A |
sync/test/fake_sync_encryption_handler.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+106 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/util/DEPS
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/util/cryptographer.h
|
View
|
1
2
3
4
5
6
|
7 chunks |
+38 lines, -86 lines |
0 comments
|
Download
|
 |
M |
sync/util/cryptographer.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+25 lines, -153 lines |
0 comments
|
Download
|
 |
M |
sync/util/cryptographer_unittest.cc
|
View
|
|
3 chunks |
+0 lines, -172 lines |
0 comments
|
Download
|
Total messages: 17 (0 generated)
|