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

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

Issue 2079943002: Change RenderFrame to use InterfaceRegistry et al. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a2
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const std::string& GetConnectionName() override; 47 const std::string& GetConnectionName() override;
48 const Identity& GetRemoteIdentity() const override; 48 const Identity& GetRemoteIdentity() const override;
49 void SetConnectionLostClosure(const base::Closure& handler) override; 49 void SetConnectionLostClosure(const base::Closure& handler) override;
50 shell::mojom::ConnectResult GetResult() const override; 50 shell::mojom::ConnectResult GetResult() const override;
51 bool IsPending() const override; 51 bool IsPending() const override;
52 uint32_t GetRemoteInstanceID() const override; 52 uint32_t GetRemoteInstanceID() const override;
53 void AddConnectionCompletedClosure(const base::Closure& callback) override; 53 void AddConnectionCompletedClosure(const base::Closure& callback) override;
54 bool AllowsInterface(const std::string& interface_name) const override; 54 bool AllowsInterface(const std::string& interface_name) const override;
55 mojom::InterfaceProvider* GetRemoteInterfaceProvider() override; 55 mojom::InterfaceProvider* GetRemoteInterfaceProvider() override;
56 InterfaceRegistry* GetInterfaceRegistry() override; 56 InterfaceRegistry* GetInterfaceRegistry() override;
57 RemoteInterfaceRegistry* GetRemoteInterfaceRegistry() override; 57 InterfaceProvider* GetRemoteInterfaces() override;
58 base::WeakPtr<Connection> GetWeakPtr() override; 58 base::WeakPtr<Connection> GetWeakPtr() override;
59 59
60 void OnConnectionCompleted(shell::mojom::ConnectResult result, 60 void OnConnectionCompleted(shell::mojom::ConnectResult result,
61 mojo::String target_user_id, 61 mojo::String target_user_id,
62 uint32_t target_application_id); 62 uint32_t target_application_id);
63 63
64 const std::string connection_name_; 64 const std::string connection_name_;
65 Identity remote_; 65 Identity remote_;
66 uint32_t remote_id_ = shell::mojom::kInvalidInstanceID; 66 uint32_t remote_id_ = shell::mojom::kInvalidInstanceID;
67 67
68 State state_; 68 State state_;
69 shell::mojom::ConnectResult result_ = shell::mojom::ConnectResult::SUCCEEDED; 69 shell::mojom::ConnectResult result_ = shell::mojom::ConnectResult::SUCCEEDED;
70 std::vector<base::Closure> connection_completed_callbacks_; 70 std::vector<base::Closure> connection_completed_callbacks_;
71 71
72 InterfaceRegistry interfaces_; 72 InterfaceRegistry interfaces_;
73 RemoteInterfaceRegistry remote_interfaces_; 73 InterfaceProvider remote_interfaces_;
74 74
75 const CapabilityRequest capability_request_; 75 const CapabilityRequest capability_request_;
76 const bool allow_all_interfaces_; 76 const bool allow_all_interfaces_;
77 77
78 base::WeakPtrFactory<ConnectionImpl> weak_factory_; 78 base::WeakPtrFactory<ConnectionImpl> weak_factory_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(ConnectionImpl); 80 DISALLOW_COPY_AND_ASSIGN(ConnectionImpl);
81 }; 81 };
82 82
83 } // namespace internal 83 } // namespace internal
84 } // namespace shell 84 } // namespace shell
85 85
86 #endif // SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_ 86 #endif // SERVICES_SHELL_PUBLIC_CPP_LIB_CONNECTION_IMPL_H_
OLDNEW
« no previous file with comments | « services/shell/public/cpp/lib/callback_binder.cc ('k') | services/shell/public/cpp/lib/connection_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698