21 #ifndef COMMON_RPC_SIMPLERPCCONTROLLER_H_
22 #define COMMON_RPC_SIMPLERPCCONTROLLER_H_
24 #include <google/protobuf/service.h>
36 bool Failed()
const {
return m_failed; }
37 std::string ErrorText()
const {
return m_error_text; }
40 void SetFailed(
const std::string &reason);
41 bool IsCanceled()
const {
return m_cancelled; }
42 void NotifyOnCancel(google::protobuf::Closure *callback) {
43 m_callback = callback;
49 std::string m_error_text;
50 google::protobuf::Closure *m_callback;
55 #endif // COMMON_RPC_SIMPLERPCCONTROLLER_H_