|
WebCrypto: Add interfaces for importKey().
Adds WebKit API interfaces importKey(). Also refactors CryptoOperation to match.
The key operations support both synchronous and asynchronous completions, as well as a separate synchronous initialization failure. The asynchronous operation is abortable (however nothing aborts it yet)
In order to test this, added a mock implementation of the interfaces which hardcodes some actions based on the bytes of the key. This allows for layout tests that verify the parsing and reflection of parameters.
BUG= 245025
R=abarth@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154860
Total comments: 3
Total comments: 18
Total comments: 10
Total comments: 1
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1123 lines, -311 lines) |
Patch |
|
M |
LayoutTests/TestExpectations
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/importKey.html
|
View
|
|
1 chunk |
+219 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/crypto/importKey-expected.txt
|
View
|
|
1 chunk |
+33 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/core.gypi
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A + |
Source/core/platform/chromium/support/WebCrypto.cpp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+57 lines, -41 lines |
0 comments
|
Download
|
|
M |
Source/modules/crypto/CryptoOperation.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+62 lines, -22 lines |
0 comments
|
Download
|
|
M |
Source/modules/crypto/CryptoOperation.cpp
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+97 lines, -56 lines |
0 comments
|
Download
|
|
M |
Source/modules/crypto/Key.h
|
View
|
1
2
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/modules/crypto/Key.cpp
|
View
|
1
2
3
4
|
2 chunks |
+70 lines, -21 lines |
0 comments
|
Download
|
|
M |
Source/modules/crypto/Key.idl
|
View
|
|
1 chunk |
+2 lines, -18 lines |
0 comments
|
Download
|
|
A + |
Source/modules/crypto/KeyOperation.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+41 lines, -15 lines |
0 comments
|
Download
|
|
A |
Source/modules/crypto/KeyOperation.cpp
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+127 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/modules/crypto/NormalizeAlgorithm.h
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/modules/crypto/NormalizeAlgorithm.cpp
|
View
|
1
2
3
4
5
|
2 chunks |
+28 lines, -9 lines |
0 comments
|
Download
|
|
M |
Source/modules/crypto/SubtleCrypto.h
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/modules/crypto/SubtleCrypto.cpp
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+62 lines, -91 lines |
0 comments
|
Download
|
|
M |
Source/modules/crypto/SubtleCrypto.idl
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/modules/modules.gypi
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
Tools/DumpRenderTree/DumpRenderTree.gypi
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A + |
Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.h
|
View
|
1
2
|
1 chunk |
+8 lines, -13 lines |
0 comments
|
Download
|
|
A |
Tools/DumpRenderTree/chromium/TestRunner/src/MockWebCrypto.cpp
|
View
|
1
2
3
|
1 chunk |
+132 lines, -0 lines |
0 comments
|
Download
|
|
M |
Tools/DumpRenderTree/chromium/TestRunner/src/WebTestInterfaces.cpp
|
View
|
1
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
public/platform/WebCrypto.h
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+147 lines, -22 lines |
0 comments
|
Download
|
|
M |
public/platform/WebCryptoKey.h
|
View
|
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
public/testing/WebTestInterfaces.h
|
View
|
1
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
Total messages: 28 (0 generated)
|