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

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

Issue 2147413002: WebRTCCertificateGenerator should not use std::string. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/WebRTCCertificate.h
diff --git a/third_party/WebKit/public/platform/WebRTCCertificate.h b/third_party/WebKit/public/platform/WebRTCCertificate.h
index 9e067500c00b6b81ff2e255503d6dc803458a080..a6f4b49cf14938df2d016d00de3e0b62a48668c1 100644
--- a/third_party/WebKit/public/platform/WebRTCCertificate.h
+++ b/third_party/WebKit/public/platform/WebRTCCertificate.h
@@ -6,6 +6,7 @@
#define WebRTCCertificate_h
#include "public/platform/WebRTCKeyParams.h"
+#include "public/platform/WebString.h"
#include <memory>
@@ -15,23 +16,18 @@ namespace blink {
// See |WebRTCCertificate::toPEM| and |WebRTCCertificateGenerator::fromPEM|.
class WebRTCCertificatePEM {
public:
- WebRTCCertificatePEM(std::string privateKey, std::string certificate)
- : m_privateKey(privateKey), m_certificate(certificate)
+ WebRTCCertificatePEM(WebString privateKey, WebString certificate)
+ : m_privateKey(privateKey)
+ , m_certificate(certificate)
{
}
- const std::string& privateKey() const
- {
- return m_privateKey;
- }
- const std::string& certificate() const
- {
- return m_certificate;
- }
+ WebString privateKey() const { return m_privateKey; }
+ WebString certificate() const { return m_certificate; }
private:
- std::string m_privateKey;
- std::string m_certificate;
+ WebString m_privateKey;
+ WebString m_certificate;
};
// WebRTCCertificate is an interface defining what Blink needs to know about certificates,

Powered by Google App Engine
This is Rietveld 408576698