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

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

Issue 386633003: kiosk: Retry failed app data fetch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: minor tweak to use URLFetcher default behavior rather than set 0 retry Created 6 years, 5 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_KIOSK_APP_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 143
144 // Updates app data from the |app| in |profile|. |app| is provided to cover 144 // Updates app data from the |app| in |profile|. |app| is provided to cover
145 // the case of app update case where |app| is the new version and is not 145 // the case of app update case where |app| is the new version and is not
146 // finished installing (e.g. because old version is still running). Otherwise, 146 // finished installing (e.g. because old version is still running). Otherwise,
147 // |app| could be NULL and the current installed app in |profile| will be 147 // |app| could be NULL and the current installed app in |profile| will be
148 // used. 148 // used.
149 void UpdateAppDataFromProfile(const std::string& app_id, 149 void UpdateAppDataFromProfile(const std::string& app_id,
150 Profile* profile, 150 Profile* profile,
151 const extensions::Extension* app); 151 const extensions::Extension* app);
152 152
153 void RetryFailedAppDataFetch();
154
153 void AddObserver(KioskAppManagerObserver* observer); 155 void AddObserver(KioskAppManagerObserver* observer);
154 void RemoveObserver(KioskAppManagerObserver* observer); 156 void RemoveObserver(KioskAppManagerObserver* observer);
155 157
156 private: 158 private:
157 friend struct base::DefaultLazyInstanceTraits<KioskAppManager>; 159 friend struct base::DefaultLazyInstanceTraits<KioskAppManager>;
158 friend struct base::DefaultDeleter<KioskAppManager>; 160 friend struct base::DefaultDeleter<KioskAppManager>;
159 friend class KioskAppManagerTest; 161 friend class KioskAppManagerTest;
160 friend class KioskTest; 162 friend class KioskTest;
161 163
162 enum AutoLoginState { 164 enum AutoLoginState {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 local_account_auto_login_id_subscription_; 232 local_account_auto_login_id_subscription_;
231 233
232 scoped_ptr<ExternalCache> external_cache_; 234 scoped_ptr<ExternalCache> external_cache_;
233 235
234 DISALLOW_COPY_AND_ASSIGN(KioskAppManager); 236 DISALLOW_COPY_AND_ASSIGN(KioskAppManager);
235 }; 237 };
236 238
237 } // namespace chromeos 239 } // namespace chromeos
238 240
239 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_ 241 #endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/app_mode/kiosk_app_data.cc ('k') | chrome/browser/chromeos/app_mode/kiosk_app_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698