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

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

Issue 2075003002: Separate Remote InterfaceProvider again, and add a new client lib type for it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ 5 #ifndef SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_
6 #define SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ 6 #define SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <set> 10 #include <set>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // Connection: 44 // Connection:
45 bool HasCapabilityClass(const std::string& class_name) const override; 45 bool HasCapabilityClass(const std::string& class_name) const override;
46 const std::string& GetConnectionName() override; 46 const std::string& GetConnectionName() override;
47 const Identity& GetRemoteIdentity() const override; 47 const Identity& GetRemoteIdentity() const override;
48 void SetConnectionLostClosure(const base::Closure& handler) override; 48 void SetConnectionLostClosure(const base::Closure& handler) override;
49 shell::mojom::ConnectResult GetResult() const override; 49 shell::mojom::ConnectResult GetResult() const override;
50 bool IsPending() const override; 50 bool IsPending() const override;
51 uint32_t GetRemoteInstanceID() const override; 51 uint32_t GetRemoteInstanceID() const override;
52 void AddConnectionCompletedClosure(const mojo::Closure& callback) override; 52 void AddConnectionCompletedClosure(const mojo::Closure& callback) override;
53 bool AllowsInterface(const std::string& interface_name) const override; 53 bool AllowsInterface(const std::string& interface_name) const override;
54 mojom::InterfaceProvider* GetRemoteInterfaceProvider() override;
54 InterfaceRegistry* GetInterfaceRegistry() override; 55 InterfaceRegistry* GetInterfaceRegistry() override;
56 RemoteInterfaceRegistry* GetRemoteInterfaceRegistry() override;
55 base::WeakPtr<Connection> GetWeakPtr() override; 57 base::WeakPtr<Connection> GetWeakPtr() override;
56 58
57 void OnConnectionCompleted(shell::mojom::ConnectResult result, 59 void OnConnectionCompleted(shell::mojom::ConnectResult result,
58 const std::string& target_user_id, 60 const std::string& target_user_id,
59 uint32_t target_application_id); 61 uint32_t target_application_id);
60 62
61 const std::string connection_name_; 63 const std::string connection_name_;
62 Identity remote_; 64 Identity remote_;
63 uint32_t remote_id_ = shell::mojom::kInvalidInstanceID; 65 uint32_t remote_id_ = shell::mojom::kInvalidInstanceID;
64 66
65 State state_; 67 State state_;
66 shell::mojom::ConnectResult result_ = shell::mojom::ConnectResult::SUCCEEDED; 68 shell::mojom::ConnectResult result_ = shell::mojom::ConnectResult::SUCCEEDED;
67 std::vector<mojo::Closure> connection_completed_callbacks_; 69 std::vector<mojo::Closure> connection_completed_callbacks_;
68 70
69 InterfaceRegistry interfaces_; 71 InterfaceRegistry interfaces_;
72 RemoteInterfaceRegistry remote_interfaces_;
70 73
71 const CapabilityRequest capability_request_; 74 const CapabilityRequest capability_request_;
72 const bool allow_all_interfaces_; 75 const bool allow_all_interfaces_;
73 76
74 base::WeakPtrFactory<ConnectionImpl> weak_factory_; 77 base::WeakPtrFactory<ConnectionImpl> weak_factory_;
75 78
76 DISALLOW_COPY_AND_ASSIGN(ConnectionImpl); 79 DISALLOW_COPY_AND_ASSIGN(ConnectionImpl);
77 }; 80 };
78 81
79 } // namespace internal 82 } // namespace internal
80 } // namespace shell 83 } // namespace shell
81 84
82 #endif // SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ 85 #endif // SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_
OLDNEW
« no previous file with comments | « services/shell/public/cpp/interface_registry.h ('k') | services/shell/public/cpp/lib/connection_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698