Index: chrome/browser/chromeos/login/session/restore_after_crash_session_manager_delegate.h |
diff --git a/chrome/browser/chromeos/login/session/restore_after_crash_session_manager_delegate.h b/chrome/browser/chromeos/login/session/restore_after_crash_session_manager_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0b640af43609896e1b61cab6c4339ca71a256d45 |
--- /dev/null |
+++ b/chrome/browser/chromeos/login/session/restore_after_crash_session_manager_delegate.h |
@@ -0,0 +1,41 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_RESTORE_AFTER_CRASH_SESSION_MANAGER_DELEGATE_H_ |
+#define CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_RESTORE_AFTER_CRASH_SESSION_MANAGER_DELEGATE_H_ |
+ |
+#include <string> |
+ |
+#include "base/basictypes.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "components/session_manager/core/session_manager.h" |
+ |
+class Profile; |
+ |
+namespace chromeos { |
+ |
+class RestoreAfterCrashSessionManagerDelegate |
+ : public session_manager::SessionManagerDelegate { |
+ public: |
+ RestoreAfterCrashSessionManagerDelegate(Profile* profile, |
+ const std::string& login_user_id); |
+ virtual ~RestoreAfterCrashSessionManagerDelegate(); |
+ |
+ protected: |
+ // session_manager::SessionManagerDelegate implementation: |
+ virtual void Start() OVERRIDE; |
+ |
+ Profile* profile() { return profile_; } |
+ const std::string& login_user_id() { return login_user_id_; } |
oshima
2014/07/10 20:07:41
const method
Nikita (slow)
2014/07/14 16:30:11
Done.
|
+ |
+ private: |
+ Profile* profile_; |
+ std::string login_user_id_; |
oshima
2014/07/10 20:07:41
can this be const too?
Nikita (slow)
2014/07/14 16:30:11
Done.
|
+ |
+ DISALLOW_COPY_AND_ASSIGN(RestoreAfterCrashSessionManagerDelegate); |
+}; |
+ |
+} // namespace chromeos |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_SESSION_RESTORE_AFTER_CRASH_SESSION_MANAGER_DELEGATE_H_ |