| 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/renderer/media/webrtc_identity_service.h" | 5 #include "content/renderer/media/webrtc_identity_service.h" |
| 6 | 6 |
| 7 #include "base/location.h" | 7 #include "base/location.h" |
| 8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "base/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 10 #include "content/public/renderer/render_thread.h" | 10 #include "content/public/renderer/render_thread.h" |
| 11 #include "net/base/net_errors.h" | 11 #include "net/base/net_errors.h" |
| 12 | 12 |
| 13 namespace content { | 13 namespace content { |
| 14 | 14 |
| 15 WebRTCIdentityService::RequestInfo::RequestInfo( | 15 WebRTCIdentityService::RequestInfo::RequestInfo( |
| 16 const WebRTCIdentityMsg_RequestIdentity_Params& params, | 16 const WebRTCIdentityMsg_RequestIdentity_Params& params, |
| 17 const SuccessCallback& success_callback, | 17 const SuccessCallback& success_callback, |
| 18 const FailureCallback& failure_callback) | 18 const FailureCallback& failure_callback) |
| 19 : params(params), | 19 : params(params), |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 } | 136 } |
| 137 | 137 |
| 138 void WebRTCIdentityService::OnOutstandingRequestReturned() { | 138 void WebRTCIdentityService::OnOutstandingRequestReturned() { |
| 139 pending_requests_.pop_front(); | 139 pending_requests_.pop_front(); |
| 140 | 140 |
| 141 if (!pending_requests_.empty()) | 141 if (!pending_requests_.empty()) |
| 142 SendRequest(pending_requests_.front()); | 142 SendRequest(pending_requests_.front()); |
| 143 } | 143 } |
| 144 | 144 |
| 145 } // namespace content | 145 } // namespace content |
| OLD | NEW |