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

Unified Diff: remoting/host/setup/me2me_native_messaging_host.h

Issue 1272833002: Pass error messages from native messaging to web-app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit tests. Created 5 years, 4 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/setup/me2me_native_messaging_host.h
diff --git a/remoting/host/setup/me2me_native_messaging_host.h b/remoting/host/setup/me2me_native_messaging_host.h
index 8686c15fe29d425a10f4684d4e7907c95dc445c4..a0b7c299f809ce49121328635781fcccf0145c15 100644
--- a/remoting/host/setup/me2me_native_messaging_host.h
+++ b/remoting/host/setup/me2me_native_messaging_host.h
@@ -23,6 +23,10 @@ namespace gaia {
class GaiaOAuthClient;
} // namespace gaia
+namespace tracked_objects {
+class Location;
+} // namespace tracked_objects
+
namespace remoting {
const char kElevatingSwitchName[] = "elevate";
@@ -114,16 +118,16 @@ class Me2MeNativeMessagingHost
void SendUsageStatsConsentResponse(
scoped_ptr<base::DictionaryValue> response,
const DaemonController::UsageStatsConsent& consent);
- void SendAsyncResult(scoped_ptr<base::DictionaryValue> response,
- DaemonController::AsyncResult result);
+ void SendAsyncSuccess(scoped_ptr<base::DictionaryValue> response);
+ void SendAsyncFailure(scoped_ptr<base::DictionaryValue> response,
+ const std::string& error_message,
+ const tracked_objects::Location& location);
void SendBooleanResult(scoped_ptr<base::DictionaryValue> response,
bool result);
void SendCredentialsResponse(scoped_ptr<base::DictionaryValue> response,
const std::string& user_email,
const std::string& refresh_token);
- void OnError();
-
void Stop();
// Returns true if the request was successfully delegated to the elevated

Powered by Google App Engine
This is Rietveld 408576698