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

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

Issue 2062333002: mojo::Callback -> base::Callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 mojom::InterfaceProvider* GetRemoteInterfaceProvider() override;
55 InterfaceRegistry* GetInterfaceRegistry() override; 55 InterfaceRegistry* GetInterfaceRegistry() override;
56 RemoteInterfaceRegistry* GetRemoteInterfaceRegistry() override; 56 RemoteInterfaceRegistry* GetRemoteInterfaceRegistry() override;
57 base::WeakPtr<Connection> GetWeakPtr() override; 57 base::WeakPtr<Connection> GetWeakPtr() override;
58 58
59 void OnConnectionCompleted(shell::mojom::ConnectResult result, 59 void OnConnectionCompleted(shell::mojom::ConnectResult result,
60 const std::string& target_user_id, 60 mojo::String target_user_id,
61 uint32_t target_application_id); 61 uint32_t target_application_id);
62 62
63 const std::string connection_name_; 63 const std::string connection_name_;
64 Identity remote_; 64 Identity remote_;
65 uint32_t remote_id_ = shell::mojom::kInvalidInstanceID; 65 uint32_t remote_id_ = shell::mojom::kInvalidInstanceID;
66 66
67 State state_; 67 State state_;
68 shell::mojom::ConnectResult result_ = shell::mojom::ConnectResult::SUCCEEDED; 68 shell::mojom::ConnectResult result_ = shell::mojom::ConnectResult::SUCCEEDED;
69 std::vector<mojo::Closure> connection_completed_callbacks_; 69 std::vector<mojo::Closure> connection_completed_callbacks_;
70 70
71 InterfaceRegistry interfaces_; 71 InterfaceRegistry interfaces_;
72 RemoteInterfaceRegistry remote_interfaces_; 72 RemoteInterfaceRegistry remote_interfaces_;
73 73
74 const CapabilityRequest capability_request_; 74 const CapabilityRequest capability_request_;
75 const bool allow_all_interfaces_; 75 const bool allow_all_interfaces_;
76 76
77 base::WeakPtrFactory<ConnectionImpl> weak_factory_; 77 base::WeakPtrFactory<ConnectionImpl> weak_factory_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(ConnectionImpl); 79 DISALLOW_COPY_AND_ASSIGN(ConnectionImpl);
80 }; 80 };
81 81
82 } // namespace internal 82 } // namespace internal
83 } // namespace shell 83 } // namespace shell
84 84
85 #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/background/tests/background_shell_unittest.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