Chromium Code Reviews| Index: content/renderer/media/dtls_identity_service.h |
| diff --git a/content/renderer/media/dtls_identity_service.h b/content/renderer/media/dtls_identity_service.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..6d3689a2a79e7babd199b23e4dbf72aafabae446 |
| --- /dev/null |
| +++ b/content/renderer/media/dtls_identity_service.h |
| @@ -0,0 +1,42 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_RENDERER_MEDIA_DTLS_IDENTITY_SERVICE_H_ |
| +#define CONTENT_RENDERER_MEDIA_DTLS_IDENTITY_SERVICE_H_ |
| + |
| + |
|
Ryan Sleevi
2013/06/04 19:13:52
STYLE: Delete line break.
jiayl
2013/06/06 05:10:24
Done.
|
| +#include <string> |
|
Ryan Sleevi
2013/06/04 19:13:52
STYLE: add line break
jiayl
2013/06/06 05:10:24
Done.
|
| +#include "base/basictypes.h" |
| +#include "googleurl/src/gurl.h" |
| + |
| +namespace content { |
| + |
| +// This class handles DTLS identity requests by sending IPC messages to the |
| +// browser process. |
| +class DTLSIdentityService { |
| + public: |
| + DTLSIdentityService(const GURL& url); |
|
Ryan Sleevi
2013/06/04 19:13:52
STYLE: Explicit
jiayl
2013/06/06 05:10:24
Done.
|
| + virtual ~DTLSIdentityService(); |
| + |
| + // Called on the renderer main thread to get the DTLS identity or geneate a |
| + // new one if not existent. |
| + // |identity_name| is the name of the identity; |
| + // |common_name| ???; |
| + // |certificate| holds the returned certificate as a string; |
| + // |private_key| holds the returned private key as a string. |
| + virtual bool GetOrGenerateIdentity(const std::string& identity_name, |
| + const std::string& common_name, |
| + std::string* certificate, |
| + std::string* private_key); |
| + |
| + private: |
| + // The frame URL of the PeerConnection which owns this DTLSIdentityService. |
| + GURL url_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(DTLSIdentityService); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_RENDERER_MEDIA_DTLS_IDENTITY_SERVICE_H_ |