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

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

Issue 7550063: Print Preview: Handle a crashed initiator tab by showing a message in PP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments Created 9 years, 4 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_handler.h
diff --git a/chrome/browser/ui/webui/print_preview_handler.h b/chrome/browser/ui/webui/print_preview_handler.h
index 9bdfba66d7c5d8652ee5b0b4241abca3af9141e2..ae2e960f853da0e67a733a01f6ad80a76ab55e7a 100644
--- a/chrome/browser/ui/webui/print_preview_handler.h
+++ b/chrome/browser/ui/webui/print_preview_handler.h
@@ -50,10 +50,10 @@ class PrintPreviewHandler : public WebUIMessageHandler,
// Displays a modal dialog, prompting the user to select a file.
void SelectFile(const FilePath& default_path);
- // Called when the print preview tab navigates. This is the last time this
+ // Called when the print preview tab is destroyed. This is the last time
// this object has access to the PrintViewManager in order to disconnect the
// observer.
- void OnNavigation();
+ void OnTabDestroyed();
private:
friend class PrintSystemTaskProxy;
@@ -97,6 +97,10 @@ class PrintPreviewHandler : public WebUIMessageHandler,
// |args| is unused.
void HandleManageCloudPrint(const base::ListValue* args);
+ // Reloads the initiator tab and closes the associated preview tab. |args| is
+ // unused.
+ void HandleReloadCrashedInitiatorTab(const base::ListValue* args);
+
// Asks the browser to show the native printer management dialog.
// |args| is unused.
void HandleManagePrinters(const base::ListValue* args);

Powered by Google App Engine
This is Rietveld 408576698