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

Side by Side Diff: content/common/mojo/mojo_shell_connection_impl.h

Issue 1819063002: 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: merge and update resourceproviderunittest 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 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 CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ 5 #ifndef CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_
6 #define CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ 6 #define CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 explicit MojoShellConnectionImpl(bool external); 46 explicit MojoShellConnectionImpl(bool external);
47 ~MojoShellConnectionImpl() override; 47 ~MojoShellConnectionImpl() override;
48 48
49 void WaitForShellIfNecessary(); 49 void WaitForShellIfNecessary();
50 50
51 // mojo::ShellClient: 51 // mojo::ShellClient:
52 void Initialize(mojo::Connector* connector, 52 void Initialize(mojo::Connector* connector,
53 const mojo::Identity& identity, 53 const mojo::Identity& identity,
54 uint32_t id) override; 54 uint32_t id) override;
55 bool AcceptConnection(mojo::Connection* connection) override; 55 bool AcceptConnection(mojo::Connection* connection) override;
56 void ShellConnectionLost() override;
57 56
58 // MojoShellConnection: 57 // MojoShellConnection:
59 mojo::Connector* GetConnector() override; 58 mojo::Connector* GetConnector() override;
60 bool UsingExternalShell() const override; 59 bool UsingExternalShell() const override;
61 void AddListener(Listener* listener) override; 60 void AddListener(Listener* listener) override;
62 void RemoveListener(Listener* listener) override; 61 void RemoveListener(Listener* listener) override;
63 62
64 const bool external_; 63 const bool external_;
65 scoped_ptr<mojo::ShellConnection> shell_connection_; 64 scoped_ptr<mojo::ShellConnection> shell_connection_;
66 std::vector<Listener*> listeners_; 65 std::vector<Listener*> listeners_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(MojoShellConnectionImpl); 67 DISALLOW_COPY_AND_ASSIGN(MojoShellConnectionImpl);
69 }; 68 };
70 69
71 } // namespace content 70 } // namespace content
72 71
73 #endif // CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_ 72 #endif // CONTENT_COMMON_MOJO_SHELL_CONNECTION_IMPL_H_
OLDNEW
« no previous file with comments | « components/resource_provider/resource_provider_test_app.cc ('k') | content/common/mojo/mojo_shell_connection_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698