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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.h

Issue 416493002: Fixed Gaia reloading. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 FRAME_STATE_LOADED, 50 FRAME_STATE_LOADED,
51 FRAME_STATE_ERROR 51 FRAME_STATE_ERROR
52 }; 52 };
53 53
54 explicit GaiaScreenHandler( 54 explicit GaiaScreenHandler(
55 const scoped_refptr<NetworkStateInformer>& network_state_informer); 55 const scoped_refptr<NetworkStateInformer>& network_state_informer);
56 virtual ~GaiaScreenHandler(); 56 virtual ~GaiaScreenHandler();
57 57
58 void LoadGaia(const GaiaContext& context); 58 void LoadGaia(const GaiaContext& context);
59 void UpdateGaia(const GaiaContext& context); 59 void UpdateGaia(const GaiaContext& context);
60 void ReloadGaia(); 60
61 // Sends request to reload Gaia. If |force_reload| is true, request
62 // will be sent in any case, otherwise it will be sent only when Gaia is
63 // not loading right now.
64 void ReloadGaia(bool force_reload);
61 65
62 FrameState frame_state() const { return frame_state_; } 66 FrameState frame_state() const { return frame_state_; }
63 net::Error frame_error() const { return frame_error_; } 67 net::Error frame_error() const { return frame_error_; }
64 68
65 private: 69 private:
66 // TODO (ygorshenin@): remove this dependency. 70 // TODO (ygorshenin@): remove this dependency.
67 friend class SigninScreenHandler; 71 friend class SigninScreenHandler;
68 72
69 // BaseScreenHandler implementation: 73 // BaseScreenHandler implementation:
70 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE; 74 virtual void DeclareLocalizedValues(LocalizedValuesBuilder* builder) OVERRIDE;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 SigninScreenHandler* signin_screen_handler_; 190 SigninScreenHandler* signin_screen_handler_;
187 191
188 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_; 192 base::WeakPtrFactory<GaiaScreenHandler> weak_factory_;
189 193
190 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler); 194 DISALLOW_COPY_AND_ASSIGN(GaiaScreenHandler);
191 }; 195 };
192 196
193 } // namespace chromeos 197 } // namespace chromeos
194 198
195 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_ 199 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_GAIA_SCREEN_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698