OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_LOGIN_UTILS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "chrome/common/net/gaia/gaia_auth_consumer.h" | 11 #include "chrome/common/net/gaia/gaia_auth_consumer.h" |
12 | 12 |
13 class GURL; | 13 class GURL; |
14 class Profile; | 14 class Profile; |
15 class PrefService; | 15 class PrefService; |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 class Authenticator; | 19 class Authenticator; |
| 20 class BackgroundView; |
20 class LoginStatusConsumer; | 21 class LoginStatusConsumer; |
21 | 22 |
22 class LoginUtils { | 23 class LoginUtils { |
23 public: | 24 public: |
24 // Get LoginUtils singleton object. If it was not set before, new default | 25 // Get LoginUtils singleton object. If it was not set before, new default |
25 // instance will be created. | 26 // instance will be created. |
26 static LoginUtils* Get(); | 27 static LoginUtils* Get(); |
27 | 28 |
28 // Set LoginUtils singleton object for test purpose only! | 29 // Set LoginUtils singleton object for test purpose only! |
29 static void Set(LoginUtils* ptr); | 30 static void Set(LoginUtils* ptr); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 // full-fledged Google authentication cookies. | 71 // full-fledged Google authentication cookies. |
71 virtual void FetchCookies( | 72 virtual void FetchCookies( |
72 Profile* profile, | 73 Profile* profile, |
73 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0; | 74 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0; |
74 | 75 |
75 // Supply credentials for sync and others to use. | 76 // Supply credentials for sync and others to use. |
76 virtual void FetchTokens( | 77 virtual void FetchTokens( |
77 Profile* profile, | 78 Profile* profile, |
78 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0; | 79 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0; |
79 | 80 |
| 81 // Sets the current background view. |
| 82 virtual void SetBackgroundView(BackgroundView* background_view) = 0; |
| 83 |
| 84 // Gets the current background view. |
| 85 virtual BackgroundView* GetBackgroundView() = 0; |
80 }; | 86 }; |
81 | 87 |
82 } // namespace chromeos | 88 } // namespace chromeos |
83 | 89 |
84 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ | 90 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
OLD | NEW |