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 |
| 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_ |
OLD | NEW |