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

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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 InterfaceRegistry* GetInterfaceRegistry() override; 54 InterfaceRegistry* GetInterfaceRegistry() override;
55 RemoteInterfaceRegistry* GetRemoteInterfaceRegistry() override;
55 base::WeakPtr<Connection> GetWeakPtr() override; 56 base::WeakPtr<Connection> GetWeakPtr() override;
56 57
57 void OnConnectionCompleted(shell::mojom::ConnectResult result, 58 void OnConnectionCompleted(shell::mojom::ConnectResult result,
58 const std::string& target_user_id, 59 const std::string& target_user_id,
59 uint32_t target_application_id); 60 uint32_t target_application_id);
60 61
61 const std::string connection_name_; 62 const std::string connection_name_;
62 Identity remote_; 63 Identity remote_;
63 uint32_t remote_id_ = shell::mojom::kInvalidInstanceID; 64 uint32_t remote_id_ = shell::mojom::kInvalidInstanceID;
64 65
65 State state_; 66 State state_;
66 shell::mojom::ConnectResult result_ = shell::mojom::ConnectResult::SUCCEEDED; 67 shell::mojom::ConnectResult result_ = shell::mojom::ConnectResult::SUCCEEDED;
67 std::vector<mojo::Closure> connection_completed_callbacks_; 68 std::vector<mojo::Closure> connection_completed_callbacks_;
68 69
69 InterfaceRegistry interfaces_; 70 InterfaceRegistry interfaces_;
71 RemoteInterfaceRegistry remote_interfaces_;
70 72
71 const CapabilityRequest capability_request_; 73 const CapabilityRequest capability_request_;
72 const bool allow_all_interfaces_; 74 const bool allow_all_interfaces_;
73 75
74 base::WeakPtrFactory<ConnectionImpl> weak_factory_; 76 base::WeakPtrFactory<ConnectionImpl> weak_factory_;
75 77
76 DISALLOW_COPY_AND_ASSIGN(ConnectionImpl); 78 DISALLOW_COPY_AND_ASSIGN(ConnectionImpl);
77 }; 79 };
78 80
79 } // namespace internal 81 } // namespace internal
80 } // namespace shell 82 } // namespace shell
81 83
82 #endif // SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ 84 #endif // SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698