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 #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/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "chrome/browser/chromeos/attestation/platform_verification_flow.h" | 13 #include "chrome/browser/chromeos/attestation/platform_verification_flow.h" |
14 #include "content/public/browser/render_frame_host.h" | 14 #include "content/public/browser/render_frame_host.h" |
15 #include "media/mojo/interfaces/platform_verification.mojom.h" | 15 #include "media/mojo/interfaces/platform_verification.mojom.h" |
16 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" | 16 #include "mojo/public/cpp/bindings/strong_binding.h" |
17 | 17 |
18 namespace chromeos { | 18 namespace chromeos { |
19 namespace attestation { | 19 namespace attestation { |
20 | 20 |
21 // Implements media::interfaces::PlatformVerification on ChromeOS using | 21 // Implements media::interfaces::PlatformVerification on ChromeOS using |
22 // PlatformVerificationFlow. Can only be used on the UI thread because | 22 // PlatformVerificationFlow. Can only be used on the UI thread because |
23 // PlatformVerificationFlow lives on the UI thread. | 23 // PlatformVerificationFlow lives on the UI thread. |
24 class PlatformVerificationImpl | 24 class PlatformVerificationImpl |
25 : public media::interfaces::PlatformVerification { | 25 : public media::interfaces::PlatformVerification { |
26 public: | 26 public: |
(...skipping 26 matching lines...) Expand all Loading... |
53 | 53 |
54 scoped_refptr<PlatformVerificationFlow> platform_verification_flow_; | 54 scoped_refptr<PlatformVerificationFlow> platform_verification_flow_; |
55 | 55 |
56 base::WeakPtrFactory<PlatformVerificationImpl> weak_factory_; | 56 base::WeakPtrFactory<PlatformVerificationImpl> weak_factory_; |
57 }; | 57 }; |
58 | 58 |
59 } // namespace attestation | 59 } // namespace attestation |
60 } // namespace chromeos | 60 } // namespace chromeos |
61 | 61 |
62 #endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_IMPL_H_ | 62 #endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_IMPL_H_ |
OLD | NEW |