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