OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PEER_CONNECTION_IDENTITY_STORE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_PEER_CONNECTION_IDENTITY_STORE_H_ |
6 #define CONTENT_RENDERER_MEDIA_PEER_CONNECTION_IDENTITY_STORE_H_ | 6 #define CONTENT_RENDERER_MEDIA_PEER_CONNECTION_IDENTITY_STORE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/threading/thread_checker.h" | 10 #include "base/threading/thread_checker.h" |
11 #include "third_party/webrtc/api/dtlsidentitystore.h" | 11 #include "third_party/webrtc/api/dtlsidentitystore.h" |
12 #include "third_party/webrtc/base/optional.h" | |
hbos_chromium
2016/04/13 17:03:08
This can be removed though! I can do so before lan
| |
12 #include "url/gurl.h" | 13 #include "url/gurl.h" |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 | 16 |
16 // This class is associated with a peer connection and handles WebRTC DTLS | 17 // This class is associated with a peer connection and handles WebRTC DTLS |
17 // identity requests by delegating to the per-renderer WebRTCIdentityProxy. | 18 // identity requests by delegating to the per-renderer WebRTCIdentityProxy. |
18 class PeerConnectionIdentityStore | 19 class PeerConnectionIdentityStore |
19 : public webrtc::DtlsIdentityStoreInterface { | 20 : public webrtc::DtlsIdentityStoreInterface { |
20 public: | 21 public: |
21 PeerConnectionIdentityStore( | 22 PeerConnectionIdentityStore( |
22 const scoped_refptr<base::SingleThreadTaskRunner>& main_thread, | 23 const scoped_refptr<base::SingleThreadTaskRunner>& main_thread, |
23 const scoped_refptr<base::SingleThreadTaskRunner>& signaling_thread, | 24 const scoped_refptr<base::SingleThreadTaskRunner>& signaling_thread, |
24 const GURL& origin, | 25 const GURL& origin, |
25 const GURL& first_party_for_cookies); | 26 const GURL& first_party_for_cookies); |
26 ~PeerConnectionIdentityStore() override; | 27 ~PeerConnectionIdentityStore() override; |
27 | 28 |
28 // webrtc::DtlsIdentityStoreInterface override; | 29 // webrtc::DtlsIdentityStoreInterface override; |
29 void RequestIdentity( | 30 void RequestIdentity( |
30 rtc::KeyParams key_params, | 31 const rtc::KeyParams& key_params, |
32 const rtc::Optional<uint64_t>& expires_ms, | |
31 const rtc::scoped_refptr<webrtc::DtlsIdentityRequestObserver>& observer) | 33 const rtc::scoped_refptr<webrtc::DtlsIdentityRequestObserver>& observer) |
32 override; | 34 override; |
33 | 35 |
34 private: | 36 private: |
35 const scoped_refptr<base::SingleThreadTaskRunner> main_thread_; | 37 const scoped_refptr<base::SingleThreadTaskRunner> main_thread_; |
36 const scoped_refptr<base::SingleThreadTaskRunner> signaling_thread_; | 38 const scoped_refptr<base::SingleThreadTaskRunner> signaling_thread_; |
37 const GURL url_; | 39 const GURL url_; |
38 const GURL first_party_for_cookies_; | 40 const GURL first_party_for_cookies_; |
39 | 41 |
40 DISALLOW_COPY_AND_ASSIGN(PeerConnectionIdentityStore); | 42 DISALLOW_COPY_AND_ASSIGN(PeerConnectionIdentityStore); |
41 }; | 43 }; |
42 | 44 |
43 } // namespace content | 45 } // namespace content |
44 | 46 |
45 #endif // CONTENT_RENDERER_MEDIA_PEER_CONNECTION_IDENTITY_STORE_H_ | 47 #endif // CONTENT_RENDERER_MEDIA_PEER_CONNECTION_IDENTITY_STORE_H_ |
OLD | NEW |