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

Side by Side Diff: chrome/browser/chromeos/login/enterprise_enrollment_view.h

Issue 6821075: Chrome-side lockbox bindings (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: ...and now again only my stuff! Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_ENTERPRISE_ENROLLMENT_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/message_loop.h"
14 #include "base/task.h"
15 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/chromeos/login/web_page_view.h" 16 #include "chrome/browser/chromeos/login/web_page_view.h"
14 #include "chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.h" 17 #include "chrome/browser/ui/webui/chromeos/enterprise_enrollment_ui.h"
15 #include "chrome/common/net/gaia/google_service_auth_error.h" 18 #include "chrome/common/net/gaia/google_service_auth_error.h"
16 #include "views/view.h" 19 #include "views/view.h"
17 20
18 class DictionaryValue; 21 class DictionaryValue;
19 22
20 namespace views { 23 namespace views {
21 class GridLayout; 24 class GridLayout;
22 class Label; 25 class Label;
23 } 26 }
24 27
25 namespace chromeos { 28 namespace chromeos {
26 29
27 class EnterpriseEnrollmentController; 30 class EnterpriseEnrollmentController;
28 class ScreenObserver; 31 class ScreenObserver;
29 32
30 // Implements the UI for the enterprise enrollment screen in OOBE. 33 // Implements the UI for the enterprise enrollment screen in OOBE.
31 class EnterpriseEnrollmentView : public views::View, 34 class EnterpriseEnrollmentView : public views::View,
32 public EnterpriseEnrollmentUI::Controller { 35 public EnterpriseEnrollmentUI::Controller {
33 public: 36 public:
34 explicit EnterpriseEnrollmentView(EnterpriseEnrollmentController* controller); 37 explicit EnterpriseEnrollmentView(EnterpriseEnrollmentController* controller);
35 virtual ~EnterpriseEnrollmentView(); 38 virtual ~EnterpriseEnrollmentView();
36 39
37 // Initialize view controls and layout. 40 // Initialize view controls and layout.
38 void Init(); 41 void Init();
39 42
43 // Starts the Lockbox storage process.
44 void WriteLockboxData();
Mattias Nissler (ping if slow) 2011/04/14 11:43:17 this needs to go into EnterpriseEnrollmentScreen,
45
40 // Switches to the confirmation screen. 46 // Switches to the confirmation screen.
41 void ShowConfirmationScreen(); 47 void ShowConfirmationScreen();
42 48
43 // Show an authentication error. 49 // Show an authentication error.
44 void ShowAuthError(const GoogleServiceAuthError& error); 50 void ShowAuthError(const GoogleServiceAuthError& error);
45 void ShowAccountError(); 51 void ShowAccountError();
46 void ShowFatalAuthError(); 52 void ShowFatalAuthError();
47 void ShowFatalEnrollmentError(); 53 void ShowFatalEnrollmentError();
48 void ShowNetworkEnrollmentError(); 54 void ShowNetworkEnrollmentError();
49 55
(...skipping 13 matching lines...) Expand all
63 void ShowError(int message_id); 69 void ShowError(int message_id);
64 70
65 // Overriden from views::View: 71 // Overriden from views::View:
66 virtual void Layout() OVERRIDE; 72 virtual void Layout() OVERRIDE;
67 73
68 EnterpriseEnrollmentController* controller_; 74 EnterpriseEnrollmentController* controller_;
69 75
70 // Controls. 76 // Controls.
71 WebPageDomView* enrollment_page_view_; 77 WebPageDomView* enrollment_page_view_;
72 78
79 // Local variables.
80 std::string user_;
81 ScopedRunnableMethodFactory<EnterpriseEnrollmentView>
82 runnable_method_factory_;
83
73 DISALLOW_COPY_AND_ASSIGN(EnterpriseEnrollmentView); 84 DISALLOW_COPY_AND_ASSIGN(EnterpriseEnrollmentView);
74 }; 85 };
75 86
76 } // namespace chromeos 87 } // namespace chromeos
77 88
78 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_VIEW_H_ 89 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698