Chromium Code Reviews| 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 DTLSIdentityServiceCONTENT_BROWSER_RENDERER_HOST_MEDIA_DTLS_IDENTITY_SER VICE_HOST_H_ | |
|
jam
2013/06/06 16:22:32
nit: fix up ifdef guard
jiayl
2013/06/06 17:07:37
Done.
| |
| 6 #define DTLSIdentityServiceCONTENT_BROWSER_RENDERER_HOST_MEDIA_DTLS_IDENTITY_SER VICE_HOST_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "content/browser/media/dtls_identity_store.h" | |
|
jam
2013/06/06 16:22:32
why?
jiayl
2013/06/06 17:07:37
Removed.
| |
| 12 #include "content/public/browser/browser_message_filter.h" | |
| 13 | |
| 14 class GURL; | |
| 15 | |
| 16 namespace IPC { | |
| 17 class Message; | |
| 18 } // namespace IPC | |
|
jam
2013/06/06 16:22:32
this is redundant from browser_message_filter.h by
jiayl
2013/06/06 17:07:37
removed
| |
| 19 | |
| 20 namespace content { | |
| 21 | |
| 22 // This class is the host for DTLSIdentityService in the browser process | |
| 23 // owned by RenderProcessHostImpl. | |
|
jam
2013/06/06 16:22:32
it's actually owned by the IPC channel proxy. I wo
jiayl
2013/06/06 17:07:37
Done.
| |
| 24 class DTLSIdentityServiceHost : public BrowserMessageFilter { | |
| 25 public: | |
| 26 DTLSIdentityServiceHost(int render_process_id); | |
| 27 | |
| 28 // content::BrowserMessageFilter override. | |
| 29 virtual bool OnMessageReceived(const IPC::Message& message, | |
|
jam
2013/06/06 16:22:32
nit: hide this
jiayl
2013/06/06 17:07:37
hmm, but I need to call it from the browser test
| |
| 30 bool* message_was_ok) OVERRIDE; | |
| 31 | |
| 32 protected: | |
| 33 virtual ~DTLSIdentityServiceHost(); | |
| 34 | |
| 35 private: | |
| 36 void OnGetOrGenerateIdentity(const GURL& origin, | |
| 37 const std::string& identity_name, | |
| 38 const std::string& common_name); | |
| 39 void OnCompleteIO(const std::string& certificate, | |
| 40 const std::string& private_key) const; | |
| 41 void OnCompleteUI(const std::string& certificate, | |
| 42 const std::string& private_key) const; | |
| 43 | |
| 44 int render_process_id_; | |
| 45 | |
| 46 DISALLOW_COPY_AND_ASSIGN(DTLSIdentityServiceHost); | |
| 47 }; | |
| 48 | |
| 49 } // namespace content | |
| 50 | |
| 51 #endif // DTLSIdentityServiceCONTENT_BROWSER_RENDERER_HOST_MEDIA_DTLS_IDENTITY_ SERVICE_HOST_H_ | |
| OLD | NEW |