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

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

Issue 2851173004: Eliminate bind callback that doesn't take a BindSourceInfo parameter. (Closed)
Patch Set: . Created 3 years, 7 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 #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"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "chrome/browser/chromeos/attestation/platform_verification_flow.h" 12 #include "chrome/browser/chromeos/attestation/platform_verification_flow.h"
13 #include "content/public/browser/render_frame_host.h" 13 #include "content/public/browser/render_frame_host.h"
14 #include "media/mojo/interfaces/platform_verification.mojom.h" 14 #include "media/mojo/interfaces/platform_verification.mojom.h"
15 #include "services/service_manager/public/cpp/bind_source_info.h"
15 16
16 namespace chromeos { 17 namespace chromeos {
17 namespace attestation { 18 namespace attestation {
18 19
19 // Implements media::mojom::PlatformVerification on ChromeOS using 20 // Implements media::mojom::PlatformVerification on ChromeOS using
20 // PlatformVerificationFlow. Can only be used on the UI thread because 21 // PlatformVerificationFlow. Can only be used on the UI thread because
21 // PlatformVerificationFlow lives on the UI thread. 22 // PlatformVerificationFlow lives on the UI thread.
22 class PlatformVerificationImpl : public media::mojom::PlatformVerification { 23 class PlatformVerificationImpl : public media::mojom::PlatformVerification {
23 public: 24 public:
24 static void Create( 25 static void Create(content::RenderFrameHost* render_frame_host,
25 content::RenderFrameHost* render_frame_host, 26 const service_manager::BindSourceInfo& source_info,
26 mojo::InterfaceRequest<media::mojom::PlatformVerification> request); 27 media::mojom::PlatformVerificationRequest request);
27 28
28 explicit PlatformVerificationImpl( 29 explicit PlatformVerificationImpl(
29 content::RenderFrameHost* render_frame_host); 30 content::RenderFrameHost* render_frame_host);
30 ~PlatformVerificationImpl() override; 31 ~PlatformVerificationImpl() override;
31 32
32 // mojo::InterfaceImpl<PlatformVerification> implementation. 33 // mojo::InterfaceImpl<PlatformVerification> implementation.
33 void ChallengePlatform(const std::string& service_id, 34 void ChallengePlatform(const std::string& service_id,
34 const std::string& challenge, 35 const std::string& challenge,
35 const ChallengePlatformCallback& callback) override; 36 const ChallengePlatformCallback& callback) override;
36 37
(...skipping 10 matching lines...) Expand all
47 48
48 scoped_refptr<PlatformVerificationFlow> platform_verification_flow_; 49 scoped_refptr<PlatformVerificationFlow> platform_verification_flow_;
49 50
50 base::WeakPtrFactory<PlatformVerificationImpl> weak_factory_; 51 base::WeakPtrFactory<PlatformVerificationImpl> weak_factory_;
51 }; 52 };
52 53
53 } // namespace attestation 54 } // namespace attestation
54 } // namespace chromeos 55 } // namespace chromeos
55 56
56 #endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_IMPL_H_ 57 #endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/chromeos/attestation/platform_verification_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698