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: mojo/shell/public/cpp/lib/connector_impl.h

Issue 1728083002: Extract a Connector interface from Shell that can be cloned & passed to other threads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@12uid
Patch Set: . Created 4 years, 10 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 MOJO_SHELL_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_
6 #define MOJO_SHELL_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_
7
8 #include "mojo/shell/public/cpp/connector.h"
9 #include "mojo/shell/public/interfaces/shell.mojom.h"
10
11 namespace mojo {
12
13 class ConnectorImpl : public Connector {
14 public:
15 explicit ConnectorImpl(shell::mojom::ConnectorPtrInfo unbound_state);
16 ~ConnectorImpl();
17
18 private:
19 // Connector:
20 scoped_ptr<Connection> Connect(const std::string& url) override;
21 scoped_ptr<Connection> Connect(ConnectParams* params) override;
22 scoped_ptr<Connector> Clone() override;
23
24 shell::mojom::ConnectorPtrInfo unbound_state_;
25 shell::mojom::ConnectorPtr connector_;
26
27 DISALLOW_COPY_AND_ASSIGN(ConnectorImpl);
28 };
29
30 } // namespace mojo
31
32 #endif // MOJO_SHELL_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698