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 |