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

Side by Side Diff: content/renderer/media/dtls_identity_service.h

Issue 15969025: Generates the DTLS identity in browser process and returns it to render process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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 unified diff | Download patch
OLDNEW
(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
9 #include <string>
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);
Ami GONE FROM CHROMIUM 2013/06/04 19:29:09 explicit
20 virtual ~DTLSIdentityService();
Ami GONE FROM CHROMIUM 2013/06/04 19:29:09 virtual dtor implies you expect to be subclassed (
jiayl 2013/06/06 05:10:24 It'll implement an interface defined by Libjingle
21
22 // Called on the renderer main thread to get the DTLS identity or geneate a
Ami GONE FROM CHROMIUM 2013/06/04 19:29:09 typo: geneate
23 // new one if not existent.
24 // |identity_name| is the name of the identity;
Ami GONE FROM CHROMIUM 2013/06/04 19:29:09 This is uninformative, and I am left not knowing w
25 // |common_name| ???;
Ami GONE FROM CHROMIUM 2013/06/04 19:29:09 ditto^2
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,
Ami GONE FROM CHROMIUM 2013/06/04 19:29:09 "bool" implies failure is possible; what can cause
jiayl 2013/06/06 05:10:24 It seems it never returns false for async msg. Cha
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);
Ami GONE FROM CHROMIUM 2013/06/04 19:29:09 DISALLOW_IMPLICIT_CONSTRUCTORS
38 };
39
40 } // namespace content
41
42 #endif // CONTENT_RENDERER_MEDIA_DTLS_IDENTITY_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698