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

Unified Diff: third_party/WebKit/public/platform/WebRTCCertificateGenerator.h

Issue 1311853005: RTCCertificate and RTCPeerConnection.generateCertificate added to JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Chromium implementation of Blink interfaces. Addressed comments. Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/platform/WebRTCCertificateGenerator.h
diff --git a/third_party/WebKit/public/platform/WebImageGenerator.h b/third_party/WebKit/public/platform/WebRTCCertificateGenerator.h
similarity index 66%
copy from third_party/WebKit/public/platform/WebImageGenerator.h
copy to third_party/WebKit/public/platform/WebRTCCertificateGenerator.h
index bb17f4d6df96a2dcc73efa069d2c6646a2338ab9..1466f76319dee76513363ecb06f0ab6ba721f3c2 100644
--- a/third_party/WebKit/public/platform/WebImageGenerator.h
+++ b/third_party/WebKit/public/platform/WebRTCCertificateGenerator.h
@@ -28,21 +28,30 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebImageGenerator_h
-#define WebImageGenerator_h
+#ifndef WebRTCCertificateGenerator_h
+#define WebRTCCertificateGenerator_h
-#include "WebCommon.h"
-
-class SkData;
-class SkImageGenerator;
+#include "public/platform/WebCallbacks.h"
+#include "public/platform/WebRTCCertificate.h"
+#include "public/platform/WebRTCKeyType.h"
+#include "public/platform/WebURL.h"
namespace blink {
-class BLINK_EXPORT WebImageGenerator {
+// Interface defining a class that can generate WebRTCCertificates asynchronously.
+class WebRTCCertificateGenerator {
public:
- static SkImageGenerator* create(SkData*);
+ virtual ~WebRTCCertificateGenerator() {}
+
+ // Start generating a certificate asynchronously. Which thread invokes the
+ // |observer| when the operation completes is implementation-specific.
+ virtual void generateCertificate(
+ const WebRTCKeyType&,
+ const WebURL& /*url*/,
+ const WebURL& /*firstPartyForCookies*/,
+ WebCallbacks<WebRTCCertificate*, void>* observer) = 0;
};
} // namespace blink
-#endif
+#endif // WebRTCCertificateGenerator_h
« no previous file with comments | « third_party/WebKit/public/platform/WebRTCCertificate.h ('k') | third_party/WebKit/public/platform/WebRTCConfiguration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698