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 #include "content/browser/media/webrtc_identity_store.h" | 5 #include "content/browser/media/webrtc_identity_store.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
11 #include "base/threading/worker_pool.h" | 11 #include "base/threading/worker_pool.h" |
12 #include "content/public/browser/browser_thread.h" | 12 #include "content/public/browser/browser_thread.h" |
13 #include "crypto/rsa_private_key.h" | 13 #include "crypto/rsa_private_key.h" |
14 #include "googleurl/src/gurl.h" | |
15 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
16 #include "net/cert/x509_util.h" | 15 #include "net/cert/x509_util.h" |
| 16 #include "url/gurl.h" |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 struct WebRTCIdentityRequestResult { | 20 struct WebRTCIdentityRequestResult { |
21 int error; | 21 int error; |
22 std::string certificate; | 22 std::string certificate; |
23 std::string private_key; | 23 std::string private_key; |
24 }; | 24 }; |
25 | 25 |
26 static void GenerateIdentityWorker(const std::string& common_name, | 26 static void GenerateIdentityWorker(const std::string& common_name, |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 return base::Bind(&WebRTCIdentityRequestHandle::Cancel, | 171 return base::Bind(&WebRTCIdentityRequestHandle::Cancel, |
172 base::Unretained(handle)); | 172 base::Unretained(handle)); |
173 } | 173 } |
174 | 174 |
175 void WebRTCIdentityStore::SetTaskRunnerForTesting( | 175 void WebRTCIdentityStore::SetTaskRunnerForTesting( |
176 const scoped_refptr<base::TaskRunner>& task_runner) { | 176 const scoped_refptr<base::TaskRunner>& task_runner) { |
177 task_runner_ = task_runner; | 177 task_runner_ = task_runner; |
178 } | 178 } |
179 | 179 |
180 } // namespace content | 180 } // namespace content |
OLD | NEW |