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

Unified Diff: mash/session/session.h

Issue 1817443002: Rename mash_shell to mash_session. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mash/session/public/interfaces/session.mojom ('k') | mash/session/session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/session/session.h
diff --git a/mash/shell/shell_application_delegate.h b/mash/session/session.h
similarity index 68%
rename from mash/shell/shell_application_delegate.h
rename to mash/session/session.h
index 98c4404cd627e0b1ca9c89493e50c9002441af44..a2a133b4063e825921af75f89d18d0c313c668e2 100644
--- a/mash/shell/shell_application_delegate.h
+++ b/mash/session/session.h
@@ -2,15 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MASH_SHELL_SHELL_APPLICATION_DELEGATE_H_
-#define MASH_SHELL_SHELL_APPLICATION_DELEGATE_H_
+#ifndef MASH_SESSION_SESSION_H_
+#define MASH_SESSION_SESSION_H_
#include <map>
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
-#include "mash/shell/public/interfaces/shell.mojom.h"
+#include "mash/session/public/interfaces/session.mojom.h"
#include "mojo/public/cpp/bindings/binding_set.h"
#include "mojo/public/cpp/bindings/interface_ptr_set.h"
#include "mojo/shell/public/cpp/interface_factory.h"
@@ -21,15 +21,14 @@ class Connection;
}
namespace mash {
-namespace shell {
+namespace session {
-class ShellApplicationDelegate
- : public mojo::ShellClient,
- public mash::shell::mojom::Shell,
- public mojo::InterfaceFactory<mash::shell::mojom::Shell> {
+class Session : public mojo::ShellClient,
+ public mojom::Session,
+ public mojo::InterfaceFactory<mojom::Session> {
public:
- ShellApplicationDelegate();
- ~ShellApplicationDelegate() override;
+ Session();
+ ~Session() override;
private:
// mojo::ShellClient:
@@ -38,7 +37,7 @@ class ShellApplicationDelegate
uint32_t id) override;
bool AcceptConnection(mojo::Connection* connection) override;
- // mash::shell::mojom::Shell:
+ // mojom::Session:
void Logout() override;
void SwitchUser() override;
void AddScreenlockStateListener(
@@ -46,9 +45,9 @@ class ShellApplicationDelegate
void LockScreen() override;
void UnlockScreen() override;
- // mojo::InterfaceFactory<mash::shell::mojom::Shell>:
+ // mojo::InterfaceFactory<mojom::Session>:
void Create(mojo::Connection* connection,
- mojo::InterfaceRequest<mash::shell::mojom::Shell> r) override;
+ mojom::SessionRequest request) override;
void StartWindowManager();
void StartSystemUI();
@@ -66,13 +65,13 @@ class ShellApplicationDelegate
mojo::Connector* connector_;
std::map<std::string, scoped_ptr<mojo::Connection>> connections_;
bool screen_locked_;
- mojo::BindingSet<mash::shell::mojom::Shell> bindings_;
+ mojo::BindingSet<mojom::Session> bindings_;
mojo::InterfacePtrSet<mojom::ScreenlockStateListener> screenlock_listeners_;
- DISALLOW_COPY_AND_ASSIGN(ShellApplicationDelegate);
+ DISALLOW_COPY_AND_ASSIGN(Session);
};
-} // namespace shell
+} // namespace session
} // namespace mash
-#endif // MASH_SHELL_SHELL_APPLICATION_DELEGATE_H_
+#endif // MASH_SESSION_SESSION_H_
« no previous file with comments | « mash/session/public/interfaces/session.mojom ('k') | mash/session/session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698