OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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 // Internal API used to run callbacks passed to chrome.certificateProvider API | |
bartfab (slow)
2015/09/03 17:30:54
I somehow find this entire comment block incredibl
pneubeck (no reviews)
2015/09/07 17:21:33
Done.
| |
6 // events. | |
7 // When dispatching a chrome.certificateProvider API event, its arguments will | |
8 // be massaged in custom bindings so a callback is added. The callback uses | |
9 // chrome.certificateProviderInternal API to report the event results. | |
10 // In order to identify the event for which the callback is called, the event | |
11 // is internally dispatched having a requestId argument (which is removed from | |
12 // the argument list before the event actually reaches the event listeners). The | |
13 // requestId is forwarded to the chrome.certificateProviderInternal API | |
14 // functions. | |
15 [implemented_in = "chrome/browser/extensions/api/certificate_provider/certificat e_provider_api.h"] | |
16 namespace certificateProviderInternal { | |
17 callback DoneCallback = void (); | |
18 callback ResultCallback = void (ArrayBuffer[] rejectedCertificates); | |
19 | |
20 interface Functions { | |
21 // Matches certificateProvider.SignCallback. Must be called without the | |
22 // signature to report an error. | |
23 static void reportSignature( | |
24 long requestId, | |
25 optional ArrayBuffer signature, | |
26 optional DoneCallback callback); | |
27 | |
28 // Matches certificateProvider.CertificatesCallback. Must be called without | |
29 // the certificates argument to report an error. | |
bartfab (slow)
2015/09/03 17:30:54
It is not documented in certificate_provider.idl t
pneubeck (no reviews)
2015/09/07 17:21:33
That's because you can't. Here certificates is opt
| |
30 static void reportCertificates( | |
31 long requestId, | |
32 optional certificateProvider.CertificateInfo[] certificates, | |
33 optional ResultCallback callback); | |
34 }; | |
35 }; | |
36 | |
OLD | NEW |