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

Side by Side Diff: services/shell/public/cpp/lib/connector_impl.h

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_
6 #define SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_
7
8 #include <memory>
9
10 #include "base/callback.h"
11 #include "base/threading/thread_checker.h"
12 #include "services/shell/public/cpp/connector.h"
13 #include "services/shell/public/interfaces/connector.mojom.h"
14
15 namespace shell {
16
17 class ConnectorImpl : public Connector {
18 public:
19 explicit ConnectorImpl(mojom::ConnectorPtrInfo unbound_state);
20 explicit ConnectorImpl(mojom::ConnectorPtr connector);
21 ~ConnectorImpl() override;
22
23 private:
24 void OnConnectionError();
25
26 // Connector:
27 std::unique_ptr<Connection> Connect(const std::string& name) override;
28 std::unique_ptr<Connection> Connect(ConnectParams* params) override;
29 std::unique_ptr<Connector> Clone() override;
30
31 bool BindIfNecessary();
32
33 mojom::ConnectorPtrInfo unbound_state_;
34 mojom::ConnectorPtr connector_;
35
36 base::ThreadChecker thread_checker_;
37
38 DISALLOW_COPY_AND_ASSIGN(ConnectorImpl);
39 };
40
41 } // namespace shell
42
43 #endif // SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_
OLDNEW
« no previous file with comments | « services/shell/public/cpp/lib/connection_impl.cc ('k') | services/shell/public/cpp/lib/connector_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698