OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 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 #ifndef CONTENT_RENDERER_MEDIA_DTLS_IDENTITY_SERVICE_H_ | |
6 #define CONTENT_RENDERER_MEDIA_DTLS_IDENTITY_SERVICE_H_ | |
7 | |
8 | |
Ryan Sleevi
2013/06/04 19:13:52
STYLE: Delete line break.
jiayl
2013/06/06 05:10:24
Done.
| |
9 #include <string> | |
Ryan Sleevi
2013/06/04 19:13:52
STYLE: add line break
jiayl
2013/06/06 05:10:24
Done.
| |
10 #include "base/basictypes.h" | |
11 #include "googleurl/src/gurl.h" | |
12 | |
13 namespace content { | |
14 | |
15 // This class handles DTLS identity requests by sending IPC messages to the | |
16 // browser process. | |
17 class DTLSIdentityService { | |
18 public: | |
19 DTLSIdentityService(const GURL& url); | |
Ryan Sleevi
2013/06/04 19:13:52
STYLE: Explicit
jiayl
2013/06/06 05:10:24
Done.
| |
20 virtual ~DTLSIdentityService(); | |
21 | |
22 // Called on the renderer main thread to get the DTLS identity or geneate a | |
23 // new one if not existent. | |
24 // |identity_name| is the name of the identity; | |
25 // |common_name| ???; | |
26 // |certificate| holds the returned certificate as a string; | |
27 // |private_key| holds the returned private key as a string. | |
28 virtual bool GetOrGenerateIdentity(const std::string& identity_name, | |
29 const std::string& common_name, | |
30 std::string* certificate, | |
31 std::string* private_key); | |
32 | |
33 private: | |
34 // The frame URL of the PeerConnection which owns this DTLSIdentityService. | |
35 GURL url_; | |
36 | |
37 DISALLOW_COPY_AND_ASSIGN(DTLSIdentityService); | |
38 }; | |
39 | |
40 } // namespace content | |
41 | |
42 #endif // CONTENT_RENDERER_MEDIA_DTLS_IDENTITY_SERVICE_H_ | |
OLD | NEW |