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

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

Issue 6821075: Chrome-side lockbox bindings (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed some dead code CL RC2 v.2 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_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_SCREEN_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/enterprise_enrollment_view.h" 16 #include "chrome/browser/chromeos/login/enterprise_enrollment_view.h"
14 #include "chrome/browser/chromeos/login/view_screen.h" 17 #include "chrome/browser/chromeos/login/view_screen.h"
15 #include "chrome/browser/policy/cloud_policy_subsystem.h" 18 #include "chrome/browser/policy/cloud_policy_subsystem.h"
16 #include "chrome/common/net/gaia/gaia_auth_fetcher.h" 19 #include "chrome/common/net/gaia/gaia_auth_fetcher.h"
17 20
18 namespace chromeos { 21 namespace chromeos {
19 22
20 // Controller interface for driving the enterprise enrollment UI. 23 // Controller interface for driving the enterprise enrollment UI.
21 class EnterpriseEnrollmentController { 24 class EnterpriseEnrollmentController {
22 public: 25 public:
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 policy::CloudPolicySubsystem::PolicySubsystemState state, 71 policy::CloudPolicySubsystem::PolicySubsystemState state,
69 policy::CloudPolicySubsystem::ErrorDetails error_details) OVERRIDE; 72 policy::CloudPolicySubsystem::ErrorDetails error_details) OVERRIDE;
70 73
71 protected: 74 protected:
72 // Overriden from ViewScreen: 75 // Overriden from ViewScreen:
73 virtual EnterpriseEnrollmentView* AllocateView() OVERRIDE; 76 virtual EnterpriseEnrollmentView* AllocateView() OVERRIDE;
74 77
75 private: 78 private:
76 void HandleAuthError(const GoogleServiceAuthError& error); 79 void HandleAuthError(const GoogleServiceAuthError& error);
77 80
81 // Starts the Lockbox storage process. The paramter must be a copy and not a
82 // reference because this function might continue to execute asynchronously.
83 void WriteLockboxData(const ClientLoginResult& result);
Will Drewry 2011/04/15 02:38:19 nit: Would it make sense to call it WriteInstallAt
pastarmovj 2011/04/15 10:05:01 Done.
84
78 scoped_ptr<GaiaAuthFetcher> auth_fetcher_; 85 scoped_ptr<GaiaAuthFetcher> auth_fetcher_;
79 std::string user_; 86 std::string user_;
80 std::string captcha_token_; 87 std::string captcha_token_;
81 scoped_ptr<policy::CloudPolicySubsystem::ObserverRegistrar> registrar_; 88 scoped_ptr<policy::CloudPolicySubsystem::ObserverRegistrar> registrar_;
89 ScopedRunnableMethodFactory<EnterpriseEnrollmentScreen>
90 runnable_method_factory_;
82 91
83 DISALLOW_COPY_AND_ASSIGN(EnterpriseEnrollmentScreen); 92 DISALLOW_COPY_AND_ASSIGN(EnterpriseEnrollmentScreen);
84 }; 93 };
85 94
86 } // namespace chromeos 95 } // namespace chromeos
87 96
88 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_SCREEN_H_ 97 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENTERPRISE_ENROLLMENT_SCREEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698