OLD | NEW |
(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 "base/threading/thread_checker.h" |
| 9 #include "mojo/shell/public/cpp/connector.h" |
| 10 #include "mojo/shell/public/interfaces/shell.mojom.h" |
| 11 |
| 12 namespace mojo { |
| 13 |
| 14 class ConnectorImpl : public Connector { |
| 15 public: |
| 16 explicit ConnectorImpl(shell::mojom::ConnectorPtrInfo unbound_state); |
| 17 ~ConnectorImpl(); |
| 18 |
| 19 private: |
| 20 // Connector: |
| 21 scoped_ptr<Connection> Connect(const std::string& url) override; |
| 22 scoped_ptr<Connection> Connect(ConnectParams* params) override; |
| 23 scoped_ptr<Connector> Clone() override; |
| 24 |
| 25 shell::mojom::ConnectorPtrInfo unbound_state_; |
| 26 shell::mojom::ConnectorPtr connector_; |
| 27 |
| 28 scoped_ptr<base::ThreadChecker> thread_checker_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(ConnectorImpl); |
| 31 }; |
| 32 |
| 33 } // namespace mojo |
| 34 |
| 35 #endif // MOJO_SHELL_PUBLIC_CPP_LIB_CONNECTOR_IMPL_H_ |
OLD | NEW |