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

Side by Side Diff: content/browser/renderer_host/media/dtls_identity_service_host.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_BROWSER_RENDERER_HOST_MEDIA_DTLS_IDENTITY_SERVICE_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_DTLS_IDENTITY_SERVICE_HOST_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "content/public/browser/browser_message_filter.h"
12
13 class GURL;
14
15 namespace content {
16
17 // This class is the host for DTLSIdentityService in the browser process.
18 class DTLSIdentityServiceHost : public BrowserMessageFilter {
19 public:
20 DTLSIdentityServiceHost();
21
22 // content::BrowserMessageFilter override.
23 virtual bool OnMessageReceived(const IPC::Message& message,
24 bool* message_was_ok) OVERRIDE;
25
26 protected:
27 virtual ~DTLSIdentityServiceHost();
28
29 private:
30 void OnRequestIdentity(const GURL& origin,
31 const std::string& identity_name,
32 const std::string& common_name);
33 virtual void OnComplete(const std::string& certificate,
34 const std::string& private_key);
35
36 DISALLOW_COPY_AND_ASSIGN(DTLSIdentityServiceHost);
37 };
38
39 } // namespace content
40
41 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_DTLS_IDENTITY_SERVICE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698