diff options
Diffstat (limited to 'chrome/browser/automation/automation_provider_json.h')
-rw-r--r-- | chrome/browser/automation/automation_provider_json.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/automation/automation_provider_json.h b/chrome/browser/automation/automation_provider_json.h index b7a8674..7b46879 100644 --- a/chrome/browser/automation/automation_provider_json.h +++ b/chrome/browser/automation/automation_provider_json.h @@ -11,6 +11,7 @@ #include <string> #include "base/compiler_specific.h" +#include "chrome/common/automation_constants.h" class AutomationId; class AutomationProvider; @@ -47,7 +48,13 @@ class AutomationJSONReply { // Send an error reply along with error message |error_message|. void SendError(const std::string& error_message); + // Send an error reply along with the specified error code and its + // associated error message. + void SendErrorCode(automation::ErrorCode code); + private: + void SendErrorInternal(const automation::Error& error); + AutomationProvider* provider_; IPC::Message* message_; }; |