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

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

Issue 722743003: Reporting of policy errors via host-offline-reason: part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased and reopened to try memory trybots. 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
135 // Handlers for NAT traversal and host domain policies. 138 // Handlers for NAT traversal and host domain policies.
136 void UpdateNatPolicy(bool nat_traversal_enabled); 139 void UpdateNatPolicy(bool nat_traversal_enabled);
137 void UpdateHostDomainPolicy(const std::string& host_domain); 140 void UpdateHostDomainPolicy(const std::string& host_domain);
138 141
139 // Caller supplied fields. 142 // Caller supplied fields.
140 scoped_ptr<ChromotingHostContext> host_context_; 143 scoped_ptr<ChromotingHostContext> host_context_;
141 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 144 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
142 base::WeakPtr<It2MeHost::Observer> observer_; 145 base::WeakPtr<It2MeHost::Observer> observer_;
143 XmppSignalStrategy::XmppServerConfig xmpp_server_config_; 146 XmppSignalStrategy::XmppServerConfig xmpp_server_config_;
144 std::string directory_bot_jid_; 147 std::string directory_bot_jid_;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 const std::string& directory_bot_jid); 201 const std::string& directory_bot_jid);
199 202
200 private: 203 private:
201 policy::PolicyService* policy_service_; 204 policy::PolicyService* policy_service_;
202 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory); 205 DISALLOW_COPY_AND_ASSIGN(It2MeHostFactory);
203 }; 206 };
204 207
205 } // namespace remoting 208 } // namespace remoting
206 209
207 #endif // REMOTING_HOST_IT2ME_IT2ME_HOST_H_ 210 #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