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

Side by Side Diff: chromeos/dbus/fake_session_manager_client.h

Issue 228703004: Start session fail causes restart chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comments and rebase Created 6 years, 8 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 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 CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 12 matching lines...) Expand all
23 virtual ~FakeSessionManagerClient(); 23 virtual ~FakeSessionManagerClient();
24 24
25 // SessionManagerClient overrides 25 // SessionManagerClient overrides
26 virtual void Init(dbus::Bus* bus) OVERRIDE; 26 virtual void Init(dbus::Bus* bus) OVERRIDE;
27 virtual void SetStubDelegate(StubDelegate* delegate) OVERRIDE; 27 virtual void SetStubDelegate(StubDelegate* delegate) OVERRIDE;
28 virtual void AddObserver(Observer* observer) OVERRIDE; 28 virtual void AddObserver(Observer* observer) OVERRIDE;
29 virtual void RemoveObserver(Observer* observer) OVERRIDE; 29 virtual void RemoveObserver(Observer* observer) OVERRIDE;
30 virtual bool HasObserver(Observer* observer) OVERRIDE; 30 virtual bool HasObserver(Observer* observer) OVERRIDE;
31 virtual void EmitLoginPromptVisible() OVERRIDE; 31 virtual void EmitLoginPromptVisible() OVERRIDE;
32 virtual void RestartJob(int pid, const std::string& command_line) OVERRIDE; 32 virtual void RestartJob(int pid, const std::string& command_line) OVERRIDE;
33 virtual void StartSession(const std::string& user_email) OVERRIDE; 33 virtual void StartSession(const std::string& user_email,
34 const StartSessionCallback& callback) OVERRIDE;
34 virtual void StopSession() OVERRIDE; 35 virtual void StopSession() OVERRIDE;
35 virtual void StartDeviceWipe() OVERRIDE; 36 virtual void StartDeviceWipe() OVERRIDE;
36 virtual void RequestLockScreen() OVERRIDE; 37 virtual void RequestLockScreen() OVERRIDE;
37 virtual void NotifyLockScreenShown() OVERRIDE; 38 virtual void NotifyLockScreenShown() OVERRIDE;
38 virtual void NotifyLockScreenDismissed() OVERRIDE; 39 virtual void NotifyLockScreenDismissed() OVERRIDE;
39 virtual void RetrieveActiveSessions( 40 virtual void RetrieveActiveSessions(
40 const ActiveSessionsCallback& callback) OVERRIDE; 41 const ActiveSessionsCallback& callback) OVERRIDE;
41 virtual void RetrieveDevicePolicy( 42 virtual void RetrieveDevicePolicy(
42 const RetrievePolicyCallback& callback) OVERRIDE; 43 const RetrievePolicyCallback& callback) OVERRIDE;
43 virtual void RetrievePolicyForUser( 44 virtual void RetrievePolicyForUser(
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 int start_device_wipe_call_count_; 101 int start_device_wipe_call_count_;
101 int notify_lock_screen_shown_call_count_; 102 int notify_lock_screen_shown_call_count_;
102 int notify_lock_screen_dismissed_call_count_; 103 int notify_lock_screen_dismissed_call_count_;
103 104
104 DISALLOW_COPY_AND_ASSIGN(FakeSessionManagerClient); 105 DISALLOW_COPY_AND_ASSIGN(FakeSessionManagerClient);
105 }; 106 };
106 107
107 } // namespace chromeos 108 } // namespace chromeos
108 109
109 #endif // CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_ 110 #endif // CHROMEOS_DBUS_FAKE_SESSION_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/settings/device_settings_test_helper.cc ('k') | chromeos/dbus/fake_session_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698