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

Unified Diff: remoting/host/it2me/it2me_native_messaging_host.h

Issue 2867223003: Send a message to the client if bad It2Me policies are read. (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/it2me/it2me_native_messaging_host.h
diff --git a/remoting/host/it2me/it2me_native_messaging_host.h b/remoting/host/it2me/it2me_native_messaging_host.h
index 948c41a8c004e04db398e1f473f0228227f17cf4..09f7cb8b6b845311325a9104985b0a30a0683c7f 100644
--- a/remoting/host/it2me/it2me_native_messaging_host.h
+++ b/remoting/host/it2me/it2me_native_messaging_host.h
@@ -72,6 +72,7 @@ class It2MeNativeMessagingHost : public It2MeHost::Observer,
std::unique_ptr<base::DictionaryValue> response);
void SendErrorAndExit(std::unique_ptr<base::DictionaryValue> response,
const std::string& description) const;
+ void SendPolicyErrorAndExit() const;
void SendMessageToClient(std::unique_ptr<base::Value> message) const;
// Callback for DelegatingSignalStrategy.
@@ -80,6 +81,9 @@ class It2MeNativeMessagingHost : public It2MeHost::Observer,
// Called when initial policies are read and when they change.
void OnPolicyUpdate(std::unique_ptr<base::DictionaryValue> policies);
+ // Called when malformed policies are detected.
+ void OnPolicyError();
+
// Returns whether the request was successfully sent to the elevated host.
bool DelegateToElevatedHost(std::unique_ptr<base::DictionaryValue> message);
« no previous file with comments | « no previous file | remoting/host/it2me/it2me_native_messaging_host.cc » ('j') | remoting/host/it2me/it2me_native_messaging_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698