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

Side by Side Diff: ash/mus/sysui_application.h

Issue 1814223002: Quit the message loop by default in ShellConnectionLost when ApplicationRunner is used (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 unified diff | Download patch
« no previous file with comments | « no previous file | ash/mus/sysui_application.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 ASH_MUS_SYSUI_APPLICATION_H_ 5 #ifndef ASH_MUS_SYSUI_APPLICATION_H_
6 #define ASH_MUS_SYSUI_APPLICATION_H_ 6 #define ASH_MUS_SYSUI_APPLICATION_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "mojo/services/tracing/public/cpp/tracing_impl.h" 10 #include "mojo/services/tracing/public/cpp/tracing_impl.h"
11 #include "mojo/shell/public/cpp/shell_client.h" 11 #include "mojo/shell/public/cpp/shell_client.h"
12 12
13 namespace ash { 13 namespace ash {
14 namespace sysui { 14 namespace sysui {
15 15
16 class AshInit; 16 class AshInit;
17 17
18 class SysUIApplication : public mojo::ShellClient { 18 class SysUIApplication : public mojo::ShellClient {
19 public: 19 public:
20 SysUIApplication(); 20 SysUIApplication();
21 ~SysUIApplication() override; 21 ~SysUIApplication() override;
22 22
23 private: 23 private:
24 // mojo::ShellClient: 24 // mojo::ShellClient:
25 void Initialize(mojo::Connector* connector, 25 void Initialize(mojo::Connector* connector,
26 const mojo::Identity& identity, 26 const mojo::Identity& identity,
27 uint32_t id) override; 27 uint32_t id) override;
28 bool AcceptConnection(mojo::Connection* connection) override; 28 bool AcceptConnection(mojo::Connection* connection) override;
29 void ShellConnectionLost() override;
30 29
31 mojo::TracingImpl tracing_; 30 mojo::TracingImpl tracing_;
32 scoped_ptr<AshInit> ash_init_; 31 scoped_ptr<AshInit> ash_init_;
33 32
34 DISALLOW_COPY_AND_ASSIGN(SysUIApplication); 33 DISALLOW_COPY_AND_ASSIGN(SysUIApplication);
35 }; 34 };
36 35
37 } // namespace sysui 36 } // namespace sysui
38 } // namespace ash 37 } // namespace ash
39 38
40 #endif // ASH_MUS_SYSUI_APPLICATION_H_ 39 #endif // ASH_MUS_SYSUI_APPLICATION_H_
OLDNEW
« no previous file with comments | « no previous file | ash/mus/sysui_application.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698