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

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

Issue 7365003: Print Preview: Make preview generation event driven to eliminate synchronous messages. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: clang fix Created 9 years, 5 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
« no previous file with comments | « chrome/browser/ui/webui/print_preview_handler.cc ('k') | chrome/browser/ui/webui/print_preview_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/print_preview_ui.h
===================================================================
--- chrome/browser/ui/webui/print_preview_ui.h (revision 92822)
+++ chrome/browser/ui/webui/print_preview_ui.h (working copy)
@@ -36,7 +36,7 @@
void OnPrintPreviewRequest();
// Notify the Web UI that the print preview will have |page_count| pages.
- void OnDidGetPreviewPageCount(int page_count);
+ void OnDidGetPreviewPageCount(int document_cookie_, int page_count);
// Notify the Web UI that the 0-based page |page_number| has been rendered.
void OnDidPreviewPage(int page_number);
@@ -75,6 +75,8 @@
// Return true if there are pending requests.
bool HasPendingRequests();
+ int document_cookie();
+
private:
// Helper function
PrintPreviewDataService* print_preview_data_service();
@@ -92,6 +94,9 @@
// The number of print preview requests in flight.
uint32 request_count_;
+ // Document cookie from the initiator renderer.
+ int document_cookie_;
+
DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
};
« no previous file with comments | « chrome/browser/ui/webui/print_preview_handler.cc ('k') | chrome/browser/ui/webui/print_preview_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698