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

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

Issue 23470003: Implemented a switch for bypassing platform verification consent UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FLOW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_
6 #define CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_ 6 #define CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // to this method. Both the response and the certificate are opaque to 96 // to this method. Both the response and the certificate are opaque to
97 // the browser; they are intended for validation by an external application or 97 // the browser; they are intended for validation by an external application or
98 // service. 98 // service.
99 typedef base::Callback<void(Result result, 99 typedef base::Callback<void(Result result,
100 const std::string& challenge_response, 100 const std::string& challenge_response,
101 const std::string& platform_key_certificate)> 101 const std::string& platform_key_certificate)>
102 ChallengeCallback; 102 ChallengeCallback;
103 103
104 // A constructor that uses the default implementation of all dependencies 104 // A constructor that uses the default implementation of all dependencies
105 // including Delegate. 105 // including Delegate.
106 // TODO(dkrahn): Enable this when the default delegate has been implemented. 106 PlatformVerificationFlow();
107 // PlatformVerificationFlow();
108 107
109 // An alternate constructor which specifies dependent objects explicitly. 108 // An alternate constructor which specifies dependent objects explicitly.
110 // This is useful in testing. The caller retains ownership of all pointers. 109 // This is useful in testing. The caller retains ownership of all pointers.
111 PlatformVerificationFlow(AttestationFlow* attestation_flow, 110 PlatformVerificationFlow(AttestationFlow* attestation_flow,
112 cryptohome::AsyncMethodCaller* async_caller, 111 cryptohome::AsyncMethodCaller* async_caller,
113 CryptohomeClient* cryptohome_client, 112 CryptohomeClient* cryptohome_client,
114 UserManager* user_manager, 113 UserManager* user_manager,
115 system::StatisticsProvider* statistics_provider, 114 system::StatisticsProvider* statistics_provider,
116 Delegate* delegate); 115 Delegate* delegate);
117 116
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 // invalidate the weak pointers before any other members are destroyed. 250 // invalidate the weak pointers before any other members are destroyed.
252 base::WeakPtrFactory<PlatformVerificationFlow> weak_factory_; 251 base::WeakPtrFactory<PlatformVerificationFlow> weak_factory_;
253 252
254 DISALLOW_COPY_AND_ASSIGN(PlatformVerificationFlow); 253 DISALLOW_COPY_AND_ASSIGN(PlatformVerificationFlow);
255 }; 254 };
256 255
257 } // namespace attestation 256 } // namespace attestation
258 } // namespace chromeos 257 } // namespace chromeos
259 258
260 #endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_ 259 #endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_PLATFORM_VERIFICATION_FLOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698