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 "chrome/browser/chromeos/attestation/platform_verification_impl.h" | 5 #include "chrome/browser/chromeos/attestation/platform_verification_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
11 | 11 |
12 namespace chromeos { | 12 namespace chromeos { |
13 namespace attestation { | 13 namespace attestation { |
14 | 14 |
15 using media::interfaces::PlatformVerification; | 15 using media::mojom::PlatformVerification; |
16 | 16 |
17 // static | 17 // static |
18 void PlatformVerificationImpl::Create( | 18 void PlatformVerificationImpl::Create( |
19 content::RenderFrameHost* render_frame_host, | 19 content::RenderFrameHost* render_frame_host, |
20 mojo::InterfaceRequest<PlatformVerification> request) { | 20 mojo::InterfaceRequest<PlatformVerification> request) { |
21 DVLOG(2) << __FUNCTION__; | 21 DVLOG(2) << __FUNCTION__; |
22 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 22 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
23 DCHECK(render_frame_host); | 23 DCHECK(render_frame_host); |
24 | 24 |
25 // The created object is strongly bound to (and owned by) the pipe. | 25 // The created object is strongly bound to (and owned by) the pipe. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 } | 73 } |
74 | 74 |
75 DCHECK(!signed_data.empty()); | 75 DCHECK(!signed_data.empty()); |
76 DCHECK(!signature.empty()); | 76 DCHECK(!signature.empty()); |
77 DCHECK(!platform_key_certificate.empty()); | 77 DCHECK(!platform_key_certificate.empty()); |
78 callback.Run(true, signed_data, signature, platform_key_certificate); | 78 callback.Run(true, signed_data, signature, platform_key_certificate); |
79 } | 79 } |
80 | 80 |
81 } // namespace attestation | 81 } // namespace attestation |
82 } // namespace chromeos | 82 } // namespace chromeos |
OLD | NEW |