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

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

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
« no previous file with comments | « no previous file | chrome/browser/chromeos/attestation/platform_verification_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_IMPL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_IMPL_H_
6 #define CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_IMPL_H_ 6 #define CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 static void Create( 24 static void Create(
25 content::RenderFrameHost* render_frame_host, 25 content::RenderFrameHost* render_frame_host,
26 mojo::InterfaceRequest<media::mojom::PlatformVerification> request); 26 mojo::InterfaceRequest<media::mojom::PlatformVerification> request);
27 27
28 explicit PlatformVerificationImpl( 28 explicit PlatformVerificationImpl(
29 content::RenderFrameHost* render_frame_host); 29 content::RenderFrameHost* render_frame_host);
30 ~PlatformVerificationImpl() override; 30 ~PlatformVerificationImpl() override;
31 31
32 // mojo::InterfaceImpl<PlatformVerification> implementation. 32 // mojo::InterfaceImpl<PlatformVerification> implementation.
33 void ChallengePlatform(const mojo::String& service_id, 33 void ChallengePlatform(const std::string& service_id,
34 const mojo::String& challenge, 34 const std::string& challenge,
35 const ChallengePlatformCallback& callback) override; 35 const ChallengePlatformCallback& callback) override;
36 36
37 private: 37 private:
38 using Result = PlatformVerificationFlow::Result; 38 using Result = PlatformVerificationFlow::Result;
39 39
40 void OnPlatformChallenged(const ChallengePlatformCallback& callback, 40 void OnPlatformChallenged(const ChallengePlatformCallback& callback,
41 Result result, 41 Result result,
42 const std::string& signed_data, 42 const std::string& signed_data,
43 const std::string& signature, 43 const std::string& signature,
44 const std::string& platform_key_certificate); 44 const std::string& platform_key_certificate);
45 45
46 content::RenderFrameHost* const render_frame_host_; 46 content::RenderFrameHost* const render_frame_host_;
47 47
48 scoped_refptr<PlatformVerificationFlow> platform_verification_flow_; 48 scoped_refptr<PlatformVerificationFlow> platform_verification_flow_;
49 49
50 base::WeakPtrFactory<PlatformVerificationImpl> weak_factory_; 50 base::WeakPtrFactory<PlatformVerificationImpl> weak_factory_;
51 }; 51 };
52 52
53 } // namespace attestation 53 } // namespace attestation
54 } // namespace chromeos 54 } // namespace chromeos
55 55
56 #endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_IMPL_H_ 56 #endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/attestation/platform_verification_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698