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

Side by Side Diff: chrome/browser/chromeos/login/screens/base_screen.h

Issue 2186623002: Minimal attestation-based enrollment flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made ZTE independent of enterprise enrollment. Created 4 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_LOGIN_SCREENS_BASE_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 BaseScreenDelegate* get_base_screen_delegate() const { 132 BaseScreenDelegate* get_base_screen_delegate() const {
133 return base_screen_delegate_; 133 return base_screen_delegate_;
134 } 134 }
135 135
136 ::login::ScreenContext context_; 136 ::login::ScreenContext context_;
137 137
138 private: 138 private:
139 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestCancel); 139 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestCancel);
140 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestSuccess); 140 FRIEND_TEST_ALL_PREFIXES(EnrollmentScreenTest, TestSuccess);
141 FRIEND_TEST_ALL_PREFIXES(MultiAuthEnrollmentScreenTest, TestCancel);
142 FRIEND_TEST_ALL_PREFIXES(AttestationAuthEnrollmentScreenTest, TestCancel);
141 FRIEND_TEST_ALL_PREFIXES(ProvisionedEnrollmentScreenTest, TestBackButton); 143 FRIEND_TEST_ALL_PREFIXES(ProvisionedEnrollmentScreenTest, TestBackButton);
142 144
143 friend class BaseScreenHandler; 145 friend class BaseScreenHandler;
144 friend class NetworkScreenTest; 146 friend class NetworkScreenTest;
145 friend class ScreenEditor; 147 friend class ScreenEditor;
146 friend class ScreenManager; 148 friend class ScreenManager;
147 friend class UpdateScreenTest; 149 friend class UpdateScreenTest;
148 150
149 void SetContext(::login::ScreenContext* context); 151 void SetContext(::login::ScreenContext* context);
150 152
151 // Called when context for the current screen was 153 // Called when context for the current screen was
152 // changed. Notification about this event comes from the JS 154 // changed. Notification about this event comes from the JS
153 // counterpart. 155 // counterpart.
154 void OnContextChanged(const base::DictionaryValue& diff); 156 void OnContextChanged(const base::DictionaryValue& diff);
155 157
156 ModelViewChannel* channel_; 158 ModelViewChannel* channel_;
157 159
158 BaseScreenDelegate* base_screen_delegate_; 160 BaseScreenDelegate* base_screen_delegate_;
159 161
160 DISALLOW_COPY_AND_ASSIGN(BaseScreen); 162 DISALLOW_COPY_AND_ASSIGN(BaseScreen);
161 }; 163 };
162 164
163 } // namespace chromeos 165 } // namespace chromeos
164 166
165 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_ 167 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_BASE_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698