Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: chrome/browser/chromeos/attestation/platform_verification_impl.cc

Issue 2411573002: media: Use new wrapper types for media mojo interfaces (Closed)
Patch Set: comments addressed Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
(...skipping 19 matching lines...) Expand all
30 PlatformVerificationImpl::PlatformVerificationImpl( 30 PlatformVerificationImpl::PlatformVerificationImpl(
31 content::RenderFrameHost* render_frame_host) 31 content::RenderFrameHost* render_frame_host)
32 : render_frame_host_(render_frame_host), weak_factory_(this) { 32 : render_frame_host_(render_frame_host), weak_factory_(this) {
33 DCHECK(render_frame_host); 33 DCHECK(render_frame_host);
34 } 34 }
35 35
36 PlatformVerificationImpl::~PlatformVerificationImpl() { 36 PlatformVerificationImpl::~PlatformVerificationImpl() {
37 } 37 }
38 38
39 void PlatformVerificationImpl::ChallengePlatform( 39 void PlatformVerificationImpl::ChallengePlatform(
40 const mojo::String& service_id, 40 const std::string& service_id,
41 const mojo::String& challenge, 41 const std::string& challenge,
42 const ChallengePlatformCallback& callback) { 42 const ChallengePlatformCallback& callback) {
43 DVLOG(2) << __FUNCTION__; 43 DVLOG(2) << __FUNCTION__;
44 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); 44 DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
45 45
46 if (!platform_verification_flow_.get()) 46 if (!platform_verification_flow_.get())
47 platform_verification_flow_ = new PlatformVerificationFlow(); 47 platform_verification_flow_ = new PlatformVerificationFlow();
48 48
49 platform_verification_flow_->ChallengePlatformKey( 49 platform_verification_flow_->ChallengePlatformKey(
50 content::WebContents::FromRenderFrameHost(render_frame_host_), service_id, 50 content::WebContents::FromRenderFrameHost(render_frame_host_), service_id,
51 challenge, base::Bind(&PlatformVerificationImpl::OnPlatformChallenged, 51 challenge, base::Bind(&PlatformVerificationImpl::OnPlatformChallenged,
(...skipping 19 matching lines...) Expand all
71 } 71 }
72 72
73 DCHECK(!signed_data.empty()); 73 DCHECK(!signed_data.empty());
74 DCHECK(!signature.empty()); 74 DCHECK(!signature.empty());
75 DCHECK(!platform_key_certificate.empty()); 75 DCHECK(!platform_key_certificate.empty());
76 callback.Run(true, signed_data, signature, platform_key_certificate); 76 callback.Run(true, signed_data, signature, platform_key_certificate);
77 } 77 }
78 78
79 } // namespace attestation 79 } // namespace attestation
80 } // namespace chromeos 80 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698