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

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

Powered by Google App Engine
This is Rietveld 408576698