| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ | 5 #ifndef ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ |
| 6 #define ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ | 6 #define ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/session/session_state_delegate.h" | 10 #include "ash/session/session_state_delegate.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 session_state_ = session_state; | 27 session_state_ = session_state; |
| 28 } | 28 } |
| 29 void AddUser(const std::string user_id); | 29 void AddUser(const std::string user_id); |
| 30 const user_manager::UserInfo* GetActiveUserInfo() const; | 30 const user_manager::UserInfo* GetActiveUserInfo() const; |
| 31 | 31 |
| 32 // SessionStateDelegate: | 32 // SessionStateDelegate: |
| 33 content::BrowserContext* GetBrowserContextByIndex( | 33 content::BrowserContext* GetBrowserContextByIndex( |
| 34 MultiProfileIndex index) override; | 34 MultiProfileIndex index) override; |
| 35 content::BrowserContext* GetBrowserContextForWindow( | 35 content::BrowserContext* GetBrowserContextForWindow( |
| 36 aura::Window* window) override; | 36 aura::Window* window) override; |
| 37 content::BrowserContext* GetUserPresentingBrowserContextForWindow( |
| 38 aura::Window* window) override; |
| 37 int GetMaximumNumberOfLoggedInUsers() const override; | 39 int GetMaximumNumberOfLoggedInUsers() const override; |
| 38 int NumberOfLoggedInUsers() const override; | 40 int NumberOfLoggedInUsers() const override; |
| 39 bool IsActiveUserSessionStarted() const override; | 41 bool IsActiveUserSessionStarted() const override; |
| 40 bool CanLockScreen() const override; | 42 bool CanLockScreen() const override; |
| 41 bool IsScreenLocked() const override; | 43 bool IsScreenLocked() const override; |
| 42 bool ShouldLockScreenBeforeSuspending() const override; | 44 bool ShouldLockScreenBeforeSuspending() const override; |
| 43 void LockScreen() override; | 45 void LockScreen() override; |
| 44 void UnlockScreen() override; | 46 void UnlockScreen() override; |
| 45 bool IsUserSessionBlocked() const override; | 47 bool IsUserSessionBlocked() const override; |
| 46 SessionState GetSessionState() const override; | 48 SessionState GetSessionState() const override; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // before the profile and browser UI are available. | 120 // before the profile and browser UI are available. |
| 119 SessionState session_state_; | 121 SessionState session_state_; |
| 120 | 122 |
| 121 DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate); | 123 DISALLOW_COPY_AND_ASSIGN(TestSessionStateDelegate); |
| 122 }; | 124 }; |
| 123 | 125 |
| 124 } // namespace test | 126 } // namespace test |
| 125 } // namespace ash | 127 } // namespace ash |
| 126 | 128 |
| 127 #endif // ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ | 129 #endif // ASH_TEST_TEST_SESSION_STATE_DELEGATE_H_ |
| OLD | NEW |