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

Side by Side Diff: remoting/host/it2me/it2me_host.h

Issue 2040353002: [Chromoting] Fix DCHECK when shutting down It2Me host from client side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve review comments 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
« no previous file with comments | « no previous file | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 REMOTING_HOST_IT2ME_IT2ME_HOST_H_ 5 #ifndef REMOTING_HOST_IT2ME_IT2ME_HOST_H_
6 #define REMOTING_HOST_IT2ME_IT2ME_HOST_H_ 6 #define REMOTING_HOST_IT2ME_IT2ME_HOST_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 void OnPolicyUpdate(std::unique_ptr<base::DictionaryValue> policies); 132 void OnPolicyUpdate(std::unique_ptr<base::DictionaryValue> policies);
133 133
134 // Called when malformed policies are detected. 134 // Called when malformed policies are detected.
135 void OnPolicyError(); 135 void OnPolicyError();
136 136
137 // Handlers for NAT traversal and domain policies. 137 // Handlers for NAT traversal and domain policies.
138 void UpdateNatPolicy(bool nat_traversal_enabled); 138 void UpdateNatPolicy(bool nat_traversal_enabled);
139 void UpdateHostDomainPolicy(const std::string& host_domain); 139 void UpdateHostDomainPolicy(const std::string& host_domain);
140 void UpdateClientDomainPolicy(const std::string& client_domain); 140 void UpdateClientDomainPolicy(const std::string& client_domain);
141 141
142 void Shutdown(); 142 void DisconnectOnNetworkThread();
143 143
144 // Caller supplied fields. 144 // Caller supplied fields.
145 std::unique_ptr<ChromotingHostContext> host_context_; 145 std::unique_ptr<ChromotingHostContext> host_context_;
146 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 146 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
147 base::WeakPtr<It2MeHost::Observer> observer_; 147 base::WeakPtr<It2MeHost::Observer> observer_;
148 XmppSignalStrategy::XmppServerConfig xmpp_server_config_; 148 XmppSignalStrategy::XmppServerConfig xmpp_server_config_;
149 std::string directory_bot_jid_; 149 std::string directory_bot_jid_;
150 150
151 It2MeHostState state_; 151 It2MeHostState state_;
152 152
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 const std::string& directory_bot_jid); 206 const std::string& directory_bot_jid);
207 207
208 private: 208 private:
209 policy::PolicyService* policy_service_; 209 policy::PolicyService* policy_service_;
210 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory); 210 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory);
211 }; 211 };
212 212
213 } // namespace remoting 213 } // namespace remoting
214 214
215 #endif // REMOTING_HOST_IT2ME_IT2ME_HOST_H_ 215 #endif // REMOTING_HOST_IT2ME_IT2ME_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/it2me/it2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698