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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « mash/shell/main.cc ('k') | mash/shell/shell_application_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MASH_SHELL_SHELL_APPLICATION_DELEGATE_H_
6 #define MASH_SHELL_SHELL_APPLICATION_DELEGATE_H_
7
8 #include <map>
9
10 #include "base/callback.h"
11 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "mojo/application/public/cpp/application_delegate.h"
14
15 namespace mojo {
16 class ApplicationConnection;
17 }
18
19 namespace mash {
20 namespace shell {
21
22 class ShellApplicationDelegate : public mojo::ApplicationDelegate {
23 public:
24 ShellApplicationDelegate();
25 ~ShellApplicationDelegate() override;
26
27 private:
28 // mojo::ApplicationDelegate:
29 void Initialize(mojo::ApplicationImpl* app) override;
30 bool ConfigureIncomingConnection(
31 mojo::ApplicationConnection* connection) override;
32
33 void StartWindowManager();
34 void StartSystemUI();
35
36 // Starts the application at |url|, running |restart_callback| if the
37 // connection to the application is closed.
38 void StartRestartableService(const std::string& url,
39 const base::Closure& restart_callback);
40
41 mojo::ApplicationImpl* app_;
sky 2015/12/01 22:40:09 member initialize to null.
42 std::map<std::string, scoped_ptr<mojo::ApplicationConnection>> connections_;
43
44 DISALLOW_COPY_AND_ASSIGN(ShellApplicationDelegate);
45 };
46
47 } // namespace shell
48 } // namespace mash
49
50 #endif // MASH_SHELL_SHELL_APPLICATION_DELEGATE_H_
OLDNEW
« 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