OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEBRTC_IDENTITY_SERVICE_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEBRTC_IDENTITY_SERVICE_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEBRTC_IDENTITY_SERVICE_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEBRTC_IDENTITY_SERVICE_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 // ERR_INSUFFICIENT_RESOURCES will be sent back to the renderer. | 26 // ERR_INSUFFICIENT_RESOURCES will be sent back to the renderer. |
27 class CONTENT_EXPORT WebRTCIdentityServiceHost : public BrowserMessageFilter { | 27 class CONTENT_EXPORT WebRTCIdentityServiceHost : public BrowserMessageFilter { |
28 public: | 28 public: |
29 WebRTCIdentityServiceHost(int renderer_process_id, | 29 WebRTCIdentityServiceHost(int renderer_process_id, |
30 scoped_refptr<WebRTCIdentityStore> identity_store); | 30 scoped_refptr<WebRTCIdentityStore> identity_store); |
31 | 31 |
32 protected: | 32 protected: |
33 virtual ~WebRTCIdentityServiceHost(); | 33 virtual ~WebRTCIdentityServiceHost(); |
34 | 34 |
35 // content::BrowserMessageFilter override. | 35 // content::BrowserMessageFilter override. |
36 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 36 virtual bool OnMessageReceived(const IPC::Message& message) override; |
37 | 37 |
38 private: | 38 private: |
39 // |sequence_number| is the same as in the OnRequestIdentity call. | 39 // |sequence_number| is the same as in the OnRequestIdentity call. |
40 // See WebRTCIdentityStore for the meaning of the parameters. | 40 // See WebRTCIdentityStore for the meaning of the parameters. |
41 void OnComplete(int sequence_number, | 41 void OnComplete(int sequence_number, |
42 int status, | 42 int status, |
43 const std::string& certificate, | 43 const std::string& certificate, |
44 const std::string& private_key); | 44 const std::string& private_key); |
45 | 45 |
46 // |sequence_number| is a renderer wide unique number for each request and | 46 // |sequence_number| is a renderer wide unique number for each request and |
(...skipping 14 matching lines...) Expand all Loading... |
61 base::Closure cancel_callback_; | 61 base::Closure cancel_callback_; |
62 scoped_refptr<WebRTCIdentityStore> identity_store_; | 62 scoped_refptr<WebRTCIdentityStore> identity_store_; |
63 base::WeakPtrFactory<WebRTCIdentityServiceHost> weak_factory_; | 63 base::WeakPtrFactory<WebRTCIdentityServiceHost> weak_factory_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(WebRTCIdentityServiceHost); | 65 DISALLOW_COPY_AND_ASSIGN(WebRTCIdentityServiceHost); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace content | 68 } // namespace content |
69 | 69 |
70 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEBRTC_IDENTITY_SERVICE_HOST_H_ | 70 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEBRTC_IDENTITY_SERVICE_HOST_H_ |
OLD | NEW |