| 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_RENDERER_MEDIA_WEBRTC_IDENTITY_SERVICE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_IDENTITY_SERVICE_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_IDENTITY_SERVICE_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_IDENTITY_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "content/public/renderer/render_process_observer.h" | 11 #include "content/public/renderer/render_process_observer.h" |
| 12 #include "googleurl/src/gurl.h" | |
| 13 #include "third_party/libjingle/source/talk/app/webrtc/peerconnectioninterface.h
" | 12 #include "third_party/libjingle/source/talk/app/webrtc/peerconnectioninterface.h
" |
| 13 #include "url/gurl.h" |
| 14 | 14 |
| 15 namespace content { | 15 namespace content { |
| 16 | 16 |
| 17 // This class handles WebRTC DTLS identity requests by sending IPC messages to | 17 // This class handles WebRTC DTLS identity requests by sending IPC messages to |
| 18 // the browser process. | 18 // the browser process. |
| 19 class WebRTCIdentityService : public webrtc::DTLSIdentityServiceInterface, | 19 class WebRTCIdentityService : public webrtc::DTLSIdentityServiceInterface, |
| 20 public RenderProcessObserver { | 20 public RenderProcessObserver { |
| 21 public: | 21 public: |
| 22 explicit WebRTCIdentityService(const GURL& origin); | 22 explicit WebRTCIdentityService(const GURL& origin); |
| 23 virtual ~WebRTCIdentityService(); | 23 virtual ~WebRTCIdentityService(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 42 GURL origin_; | 42 GURL origin_; |
| 43 talk_base::scoped_refptr<webrtc::DTLSIdentityRequestObserver> | 43 talk_base::scoped_refptr<webrtc::DTLSIdentityRequestObserver> |
| 44 pending_observer_; | 44 pending_observer_; |
| 45 int pending_request_id_; | 45 int pending_request_id_; |
| 46 DISALLOW_COPY_AND_ASSIGN(WebRTCIdentityService); | 46 DISALLOW_COPY_AND_ASSIGN(WebRTCIdentityService); |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace content | 49 } // namespace content |
| 50 | 50 |
| 51 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_IDENTITY_SERVICE_H_ | 51 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_IDENTITY_SERVICE_H_ |
| OLD | NEW |