| 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 CommandLine; |
| 13 class GURL; | 14 class GURL; |
| 14 class Profile; | 15 class Profile; |
| 15 class PrefService; | 16 class PrefService; |
| 16 | 17 |
| 18 namespace { |
| 19 class BrowserGuestSessionNavigatorTest; |
| 20 } // namespace |
| 21 |
| 17 namespace chromeos { | 22 namespace chromeos { |
| 18 | 23 |
| 19 class Authenticator; | 24 class Authenticator; |
| 20 class BackgroundView; | 25 class BackgroundView; |
| 21 class LoginStatusConsumer; | 26 class LoginStatusConsumer; |
| 22 | 27 |
| 23 class LoginUtils { | 28 class LoginUtils { |
| 24 public: | 29 public: |
| 25 // Get LoginUtils singleton object. If it was not set before, new default | 30 // Get LoginUtils singleton object. If it was not set before, new default |
| 26 // instance will be created. | 31 // instance will be created. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // Supply credentials for sync and others to use. | 81 // Supply credentials for sync and others to use. |
| 77 virtual void FetchTokens( | 82 virtual void FetchTokens( |
| 78 Profile* profile, | 83 Profile* profile, |
| 79 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0; | 84 const GaiaAuthConsumer::ClientLoginResult& credentials) = 0; |
| 80 | 85 |
| 81 // Sets the current background view. | 86 // Sets the current background view. |
| 82 virtual void SetBackgroundView(BackgroundView* background_view) = 0; | 87 virtual void SetBackgroundView(BackgroundView* background_view) = 0; |
| 83 | 88 |
| 84 // Gets the current background view. | 89 // Gets the current background view. |
| 85 virtual BackgroundView* GetBackgroundView() = 0; | 90 virtual BackgroundView* GetBackgroundView() = 0; |
| 91 |
| 92 protected: |
| 93 friend class ::BrowserGuestSessionNavigatorTest; |
| 94 |
| 95 // Returns command line string to be used for the OTR process. Also modifies |
| 96 // given command line. |
| 97 virtual std::string GetOffTheRecordCommandLine( |
| 98 const GURL& start_url, |
| 99 const CommandLine& base_command_line, |
| 100 CommandLine* command_line) = 0; |
| 86 }; | 101 }; |
| 87 | 102 |
| 88 } // namespace chromeos | 103 } // namespace chromeos |
| 89 | 104 |
| 90 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ | 105 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_UTILS_H_ |
| OLD | NEW |