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

Side by Side Diff: chrome/browser/chromeos/login/session/user_session_manager.h

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SESSION_USER_SESSION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // Removes a profile from the per-user input methods states map. 239 // Removes a profile from the per-user input methods states map.
240 void RemoveProfileForTesting(Profile* profile); 240 void RemoveProfileForTesting(Profile* profile);
241 241
242 const UserContext& user_context() const { return user_context_; } 242 const UserContext& user_context() const { return user_context_; }
243 bool has_auth_cookies() const { return has_auth_cookies_; } 243 bool has_auth_cookies() const { return has_auth_cookies_; }
244 244
245 void Shutdown(); 245 void Shutdown();
246 246
247 private: 247 private:
248 friend class test::UserSessionManagerTestApi; 248 friend class test::UserSessionManagerTestApi;
249 friend struct DefaultSingletonTraits<UserSessionManager>; 249 friend struct base::DefaultSingletonTraits<UserSessionManager>;
250 250
251 typedef std::set<std::string> SigninSessionRestoreStateSet; 251 typedef std::set<std::string> SigninSessionRestoreStateSet;
252 252
253 UserSessionManager(); 253 UserSessionManager();
254 ~UserSessionManager() override; 254 ~UserSessionManager() override;
255 255
256 // OAuth2LoginManager::Observer overrides: 256 // OAuth2LoginManager::Observer overrides:
257 void OnSessionRestoreStateChanged( 257 void OnSessionRestoreStateChanged(
258 Profile* user_profile, 258 Profile* user_profile,
259 OAuth2LoginManager::SessionRestoreState state) override; 259 OAuth2LoginManager::SessionRestoreState state) override;
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 bool waiting_for_child_account_status_; 476 bool waiting_for_child_account_status_;
477 477
478 base::WeakPtrFactory<UserSessionManager> weak_factory_; 478 base::WeakPtrFactory<UserSessionManager> weak_factory_;
479 479
480 DISALLOW_COPY_AND_ASSIGN(UserSessionManager); 480 DISALLOW_COPY_AND_ASSIGN(UserSessionManager);
481 }; 481 };
482 482
483 } // namespace chromeos 483 } // namespace chromeos
484 484
485 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_ 485 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_USER_SESSION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698