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

Unified Diff: mash/shell/shell_application_delegate.h

Issue 1492563002: Introduce mash/shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years 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/shell/main.cc ('k') | mash/shell/shell_application_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/shell/shell_application_delegate.h
diff --git a/mash/shell/shell_application_delegate.h b/mash/shell/shell_application_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..471f4a1ec07b6ae0330015bc680742869a933e6b
--- /dev/null
+++ b/mash/shell/shell_application_delegate.h
@@ -0,0 +1,50 @@
+// Copyright 2015 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 MASH_SHELL_SHELL_APPLICATION_DELEGATE_H_
+#define MASH_SHELL_SHELL_APPLICATION_DELEGATE_H_
+
+#include <map>
+
+#include "base/callback.h"
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "mojo/application/public/cpp/application_delegate.h"
+
+namespace mojo {
+class ApplicationConnection;
+}
+
+namespace mash {
+namespace shell {
+
+class ShellApplicationDelegate : public mojo::ApplicationDelegate {
+ public:
+ ShellApplicationDelegate();
+ ~ShellApplicationDelegate() override;
+
+ private:
+ // mojo::ApplicationDelegate:
+ void Initialize(mojo::ApplicationImpl* app) override;
+ bool ConfigureIncomingConnection(
+ mojo::ApplicationConnection* connection) override;
+
+ void StartWindowManager();
+ void StartSystemUI();
+
+ // Starts the application at |url|, running |restart_callback| if the
+ // connection to the application is closed.
+ void StartRestartableService(const std::string& url,
+ const base::Closure& restart_callback);
+
+ mojo::ApplicationImpl* app_;
sky 2015/12/01 22:40:09 member initialize to null.
+ std::map<std::string, scoped_ptr<mojo::ApplicationConnection>> connections_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShellApplicationDelegate);
+};
+
+} // namespace shell
+} // namespace mash
+
+#endif // MASH_SHELL_SHELL_APPLICATION_DELEGATE_H_
« no previous file with comments | « mash/shell/main.cc ('k') | mash/shell/shell_application_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698