Index: content/public/browser/web_ui_message_handler.h |
diff --git a/content/public/browser/web_ui_message_handler.h b/content/public/browser/web_ui_message_handler.h |
index 7be55873df20fb1fce0a6218dd1badda3fb7be03..cd9c97c3f034d94e8a0999d345162d40b97d5e0d 100644 |
--- a/content/public/browser/web_ui_message_handler.h |
+++ b/content/public/browser/web_ui_message_handler.h |
@@ -84,6 +84,12 @@ class CONTENT_EXPORT WebUIMessageHandler { |
const base::Value& response); |
// Helper method for responding to Javascript requests initiated with |
+ // cr.sendWithPromise() (defined in cr.js) for the case where the returned |
+ // promise should be resolved (request succeeded). |
+ void ResolveJavascriptCallback(const std::string& callback_id, |
+ const base::Value& response); |
+ |
+ // Helper method for responding to Javascript requests initiated with |
// cr.sendWithPromise() (defined in cr.js), for the case where the returned |
// promise should be rejected (request failed). |
void RejectJavascriptCallback(const base::Value& callback_id, |