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

Side by Side Diff: chrome/common/print_messages.h

Issue 9762004: Block scripted printing. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for printing. 5 // IPC messages for printing.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 // requested pages and switch back the CSS to display media type. 272 // requested pages and switch back the CSS to display media type.
273 IPC_MESSAGE_ROUTED0(PrintMsg_PrintPages) 273 IPC_MESSAGE_ROUTED0(PrintMsg_PrintPages)
274 274
275 // Tells the render view that printing is done so it can clean up. 275 // Tells the render view that printing is done so it can clean up.
276 IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone, 276 IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone,
277 bool /* success */) 277 bool /* success */)
278 278
279 // Tells the render view that preview printing request has been cancelled. 279 // Tells the render view that preview printing request has been cancelled.
280 IPC_MESSAGE_ROUTED0(PrintMsg_PreviewPrintingRequestCancelled) 280 IPC_MESSAGE_ROUTED0(PrintMsg_PreviewPrintingRequestCancelled)
281 281
282 // Tells the render view whether scripted printing is blocked or not.
283 IPC_MESSAGE_ROUTED1(PrintMsg_SetScriptedPrintingBlocked,
284 bool /* blocked */)
285
282 // Tells the render view to switch the CSS to print media type, renders every 286 // Tells the render view to switch the CSS to print media type, renders every
283 // requested pages for print preview using the given |settings|. This gets 287 // requested pages for print preview using the given |settings|. This gets
284 // called multiple times as the user updates settings. 288 // called multiple times as the user updates settings.
285 IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview, 289 IPC_MESSAGE_ROUTED1(PrintMsg_PrintPreview,
286 DictionaryValue /* settings */) 290 DictionaryValue /* settings */)
287 291
288 // Like PrintMsg_PrintPages, but using the print preview document's frame/node. 292 // Like PrintMsg_PrintPages, but using the print preview document's frame/node.
289 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog) 293 IPC_MESSAGE_ROUTED0(PrintMsg_PrintForSystemDialog)
290 294
291 // Tells a renderer to stop blocking script initiated printing. 295 // Tells a renderer to stop blocking script initiated printing.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 // Tell the browser print preview found the selected printer has invalid 408 // Tell the browser print preview found the selected printer has invalid
405 // settings (which typically caused by disconnected network printer or printer 409 // settings (which typically caused by disconnected network printer or printer
406 // driver is bogus). 410 // driver is bogus).
407 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings, 411 IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewInvalidPrinterSettings,
408 int /* document cookie */) 412 int /* document cookie */)
409 413
410 // Run a nested message loop in the renderer until print preview for 414 // Run a nested message loop in the renderer until print preview for
411 // window.print() finishes. 415 // window.print() finishes.
412 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview, 416 IPC_SYNC_MESSAGE_ROUTED1_0(PrintHostMsg_ScriptedPrintPreview,
413 bool /* is_modifiable */) 417 bool /* is_modifiable */)
OLDNEW
« no previous file with comments | « chrome/browser/ui/blocked_content/blocked_content_tab_helper.cc ('k') | chrome/renderer/print_web_view_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698