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

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

Issue 746723002: Revert of Reporting of policy errors via host-offline-reason: part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // the UI thread. 125 // the UI thread.
126 void ShutdownOnUiThread(); 126 void ShutdownOnUiThread();
127 127
128 // Called when |policy_watcher_| has stopped listening for changes and it is 128 // Called when |policy_watcher_| has stopped listening for changes and it is
129 // safe to delete it. 129 // safe to delete it.
130 void OnPolicyWatcherShutdown(); 130 void OnPolicyWatcherShutdown();
131 131
132 // Called when initial policies are read, and when they change. 132 // Called when initial policies are read, and when they change.
133 void OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies); 133 void OnPolicyUpdate(scoped_ptr<base::DictionaryValue> policies);
134 134
135 // Called when malformed policies are detected.
136 void OnPolicyError();
137
138 // Handlers for NAT traversal and host domain policies. 135 // Handlers for NAT traversal and host domain policies.
139 void UpdateNatPolicy(bool nat_traversal_enabled); 136 void UpdateNatPolicy(bool nat_traversal_enabled);
140 void UpdateHostDomainPolicy(const std::string& host_domain); 137 void UpdateHostDomainPolicy(const std::string& host_domain);
141 138
142 // Caller supplied fields. 139 // Caller supplied fields.
143 scoped_ptr<ChromotingHostContext> host_context_; 140 scoped_ptr<ChromotingHostContext> host_context_;
144 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 141 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
145 base::WeakPtr<It2MeHost::Observer> observer_; 142 base::WeakPtr<It2MeHost::Observer> observer_;
146 XmppSignalStrategy::XmppServerConfig xmpp_server_config_; 143 XmppSignalStrategy::XmppServerConfig xmpp_server_config_;
147 std::string directory_bot_jid_; 144 std::string directory_bot_jid_;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 const std::string& directory_bot_jid); 198 const std::string& directory_bot_jid);
202 199
203 private: 200 private:
204 policy::PolicyService* policy_service_; 201 policy::PolicyService* policy_service_;
205 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory); 202 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory);
206 }; 203 };
207 204
208 } // namespace remoting 205 } // namespace remoting
209 206
210 #endif // REMOTING_HOST_IT2ME_IT2ME_HOST_H_ 207 #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