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

Unified Diff: content/public/browser/web_ui_message_handler.h

Issue 2038963002: [Offline Pages] Link the internals page with the offline model and request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More code review comment fixes Created 4 years, 6 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: 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,

Powered by Google App Engine
This is Rietveld 408576698