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 #include "content/renderer/media/peer_connection_identity_store.h" | 5 #include "content/renderer/media/peer_connection_identity_store.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "content/renderer/media/webrtc_identity_service.h" | 12 #include "content/renderer/media/webrtc_identity_service.h" |
13 #include "content/renderer/render_thread_impl.h" | 13 #include "content/renderer/render_thread_impl.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 namespace { | 16 namespace { |
17 | 17 |
18 const char kIdentityName[] = "WebRTC"; | 18 const char kIdentityName[] = "WebRTC"; |
19 static unsigned int kRSAChromiumKeyLength = 1024; | 19 static unsigned int kRSAChromiumKeyLength = 1024; |
20 static unsigned int kRSAChromiumPubExp = 0x10001; | 20 static unsigned int kRSAChromiumPubExp = 0x10001; |
21 static uint64_t kYearInSeconds = 365 * 24 * 60 * 60; | 21 static uint64_t kYearInSeconds = 365 * 24 * 60 * 60; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 } else { | 169 } else { |
170 // Async call to |observer|->OnFailure. | 170 // Async call to |observer|->OnFailure. |
171 signaling_thread_->PostTask(FROM_HERE, | 171 signaling_thread_->PostTask(FROM_HERE, |
172 base::Bind(&webrtc::DtlsIdentityRequestObserver::OnFailure, | 172 base::Bind(&webrtc::DtlsIdentityRequestObserver::OnFailure, |
173 observer, 0)); | 173 observer, 0)); |
174 } | 174 } |
175 } | 175 } |
176 } | 176 } |
177 | 177 |
178 } // namespace content | 178 } // namespace content |
OLD | NEW |