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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_handler.h

Issue 2938073003: Change getAccessToken and getExtensionPrinterAccess to sendWithPromise (Closed)
Patch Set: Fix annotation Created 3 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: chrome/browser/ui/webui/print_preview/print_preview_handler.h
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.h b/chrome/browser/ui/webui/print_preview/print_preview_handler.h
index f18848109b4f4ab42bbecf5d9e9d774ff9ceca67..ecf8ff926cb3a3f5226ca10efad91f493f1b0a12 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.h
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.h
@@ -223,9 +223,12 @@ class PrintPreviewHandler
const std::string& default_printer);
// Send OAuth2 access token.
- void SendAccessToken(const std::string& type,
+ void SendAccessToken(const std::string& callback_id,
const std::string& access_token);
+ // Send message indicating a request for token was already in progress.
+ void SendRequestInProgress(const std::string& callback_id);
+
// Sends the printer capabilities to the Web UI. |settings_info| contains
// printer capabilities information. If |settings_info| is empty, sends
// error notification to the Web UI instead.
@@ -334,9 +337,9 @@ class PrintPreviewHandler
// Called when an extension reports information requested for a provisional
// printer.
- // |printer_id|: The provisional printer id.
+ // |callback_id|: The javascript callback to resolve or reject.
// |printer_info|: The data reported by the extension.
- void OnGotExtensionPrinterInfo(const std::string& printer_id,
+ void OnGotExtensionPrinterInfo(const std::string& callback_id,
const base::DictionaryValue& printer_info);
// Called when an extension reports the set of print capabilites for a
« no previous file with comments | « chrome/browser/resources/print_preview/native_layer.js ('k') | chrome/browser/ui/webui/print_preview/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698