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

Unified Diff: chrome/renderer/mock_printer.h

Issue 9705084: Block printing from blocked popup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix init order Created 8 years, 9 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/renderer/chrome_mock_render_thread.cc ('k') | chrome/renderer/mock_printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/mock_printer.h
diff --git a/chrome/renderer/mock_printer.h b/chrome/renderer/mock_printer.h
index 255dbd8e6e46ab46735f3b854f30e4c75aa585a6..d38f174db0e24a664959709a5a0a140fb7f0f6b1 100644
--- a/chrome/renderer/mock_printer.h
+++ b/chrome/renderer/mock_printer.h
@@ -70,12 +70,14 @@ class MockPrinter {
// Functions that changes settings of a pseudo printer.
void ResetPrinter();
void SetDefaultPrintSettings(const PrintMsg_Print_Params& params);
+ void SetScriptedPrintAllowed(bool allowed);
void UseInvalidSettings();
void UseInvalidPageSize();
void UseInvalidContentSize();
// Functions that handles IPC events.
void GetDefaultPrintSettings(PrintMsg_Print_Params* params);
+ void OnCheckScriptedPrintAllowed(bool* allowed);
void ScriptedPrint(int cookie,
int expected_pages_count,
bool has_selection,
@@ -149,6 +151,9 @@ class MockPrinter {
string16 title_;
string16 url_;
+ // Used for simulating attempted printing from a blocked popup.
+ bool scripted_print_allowed_;
+
// Used for generating invalid settings.
bool use_invalid_settings_;
« no previous file with comments | « chrome/renderer/chrome_mock_render_thread.cc ('k') | chrome/renderer/mock_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698