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

Side by Side Diff: chrome/browser/chromeos/app_mode/startup_app_launcher.h

Issue 209143002: Added shortcut for NW config screen in kiosk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 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_APP_MODE_STARTUP_APP_LAUNCHER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_
6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_ 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Returns true if Internet is online. 44 // Returns true if Internet is online.
45 virtual bool IsNetworkReady() = 0; 45 virtual bool IsNetworkReady() = 0;
46 46
47 virtual void OnLoadingOAuthFile() = 0; 47 virtual void OnLoadingOAuthFile() = 0;
48 virtual void OnInitializingTokenService() = 0; 48 virtual void OnInitializingTokenService() = 0;
49 virtual void OnInstallingApp() = 0; 49 virtual void OnInstallingApp() = 0;
50 virtual void OnReadyToLaunch() = 0; 50 virtual void OnReadyToLaunch() = 0;
51 virtual void OnLaunchSucceeded() = 0; 51 virtual void OnLaunchSucceeded() = 0;
52 virtual void OnLaunchFailed(KioskAppLaunchError::Error error) = 0; 52 virtual void OnLaunchFailed(KioskAppLaunchError::Error error) = 0;
53 virtual bool IsShowingNetworkConfigScreen() = 0;
53 54
54 protected: 55 protected:
55 virtual ~Delegate() {} 56 virtual ~Delegate() {}
56 }; 57 };
57 58
58 StartupAppLauncher(Profile* profile, 59 StartupAppLauncher(Profile* profile,
59 const std::string& app_id, 60 const std::string& app_id,
60 bool diagnostic_mode, 61 bool diagnostic_mode,
61 Delegate* delegate); 62 Delegate* delegate);
62 63
63 virtual ~StartupAppLauncher(); 64 virtual ~StartupAppLauncher();
64 65
65 // Prepares the environment for an app launch. 66 // Prepares the environment for an app launch.
66 void Initialize(); 67 void Initialize();
67 68
68 // Continues the initialization after network is ready. 69 // Continues the initialization after network is ready.
69 void ContinueWithNetworkReady(); 70 void ContinueWithNetworkReady();
70 71
71 // Launches the app after the initialization is successful. 72 // Launches the app after the initialization is successful.
72 void LaunchApp(); 73 void LaunchApp();
73 74
75 // Restarts launcher;
76 void RestartLauncher();
77
74 private: 78 private:
75 // OAuth parameters from /home/chronos/kiosk_auth file. 79 // OAuth parameters from /home/chronos/kiosk_auth file.
76 struct KioskOAuthParams { 80 struct KioskOAuthParams {
77 std::string refresh_token; 81 std::string refresh_token;
78 std::string client_id; 82 std::string client_id;
79 std::string client_secret; 83 std::string client_secret;
80 }; 84 };
81 85
82 void OnLaunchSuccess(); 86 void OnLaunchSuccess();
83 void OnLaunchFailure(KioskAppLaunchError::Error error); 87 void OnLaunchFailure(KioskAppLaunchError::Error error);
(...skipping 29 matching lines...) Expand all
113 117
114 scoped_refptr<extensions::WebstoreStandaloneInstaller> installer_; 118 scoped_refptr<extensions::WebstoreStandaloneInstaller> installer_;
115 KioskOAuthParams auth_params_; 119 KioskOAuthParams auth_params_;
116 120
117 DISALLOW_COPY_AND_ASSIGN(StartupAppLauncher); 121 DISALLOW_COPY_AND_ASSIGN(StartupAppLauncher);
118 }; 122 };
119 123
120 } // namespace chromeos 124 } // namespace chromeos
121 125
122 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_ 126 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_STARTUP_APP_LAUNCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/app_mode/app_launch_utils.cc ('k') | chrome/browser/chromeos/app_mode/startup_app_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698