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

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

Issue 2811713002: Check the available storage size before starting encryption migration. (Closed)
Patch Set: Always check the available storage. Created 3 years, 8 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_ENCRYPTION_MIGRATION_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "chrome/browser/chromeos/login/screens/base_screen.h" 9 #include "chrome/browser/chromeos/login/screens/base_screen.h"
10 #include "chrome/browser/chromeos/login/screens/encryption_migration_screen_view .h" 10 #include "chrome/browser/chromeos/login/screens/encryption_migration_screen_view .h"
(...skipping 23 matching lines...) Expand all
34 // Sets the UserContext for a user whose cryptohome should be migrated. 34 // Sets the UserContext for a user whose cryptohome should be migrated.
35 void SetUserContext(const UserContext& user_context); 35 void SetUserContext(const UserContext& user_context);
36 36
37 // Sets whether the migration process should resume the previous one or not. 37 // Sets whether the migration process should resume the previous one or not.
38 void SetShouldResume(bool should_resume); 38 void SetShouldResume(bool should_resume);
39 39
40 // Sets a callback, which should be called when the user want to log in to the 40 // Sets a callback, which should be called when the user want to log in to the
41 // session from the migration UI. 41 // session from the migration UI.
42 void SetContinueLoginCallback(ContinueLoginCallback callback); 42 void SetContinueLoginCallback(ContinueLoginCallback callback);
43 43
44 // Setup the initial view in the migration UI.
45 // This should be called after other state like UserContext, etc... are set.
46 void SetupInitialView();
47
44 private: 48 private:
45 EncryptionMigrationScreenView* view_; 49 EncryptionMigrationScreenView* view_;
46 50
47 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreen); 51 DISALLOW_COPY_AND_ASSIGN(EncryptionMigrationScreen);
48 }; 52 };
49 53
50 } // namespace chromeos 54 } // namespace chromeos
51 55
52 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_ 56 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREENS_ENCRYPTION_MIGRATION_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698