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

Side by Side Diff: chrome/browser/printing/print_view_manager.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 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 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 USER_INITIATED_PREVIEW, 95 USER_INITIATED_PREVIEW,
96 SCRIPTED_PREVIEW, 96 SCRIPTED_PREVIEW,
97 }; 97 };
98 98
99 // IPC Message handlers. 99 // IPC Message handlers.
100 void OnDidGetPrintedPagesCount(int cookie, int number_pages); 100 void OnDidGetPrintedPagesCount(int cookie, int number_pages);
101 void OnDidGetDocumentCookie(int cookie); 101 void OnDidGetDocumentCookie(int cookie);
102 void OnDidShowPrintDialog(); 102 void OnDidShowPrintDialog();
103 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params); 103 void OnDidPrintPage(const PrintHostMsg_DidPrintPage_Params& params);
104 void OnPrintingFailed(int cookie); 104 void OnPrintingFailed(int cookie);
105 105 void OnCheckScriptedPrintAllowed(bool* allowed);
106 void OnScriptedPrintPreview(bool source_is_modifiable, 106 void OnScriptedPrintPreview(bool source_is_modifiable,
107 IPC::Message* reply_msg); 107 IPC::Message* reply_msg);
108 void OnScriptedPrintPreviewReply(IPC::Message* reply_msg); 108 void OnScriptedPrintPreviewReply(IPC::Message* reply_msg);
109 109
110 // Processes a NOTIFY_PRINT_JOB_EVENT notification. 110 // Processes a NOTIFY_PRINT_JOB_EVENT notification.
111 void OnNotifyPrintJobEvent(const JobEventDetails& event_details); 111 void OnNotifyPrintJobEvent(const JobEventDetails& event_details);
112 112
113 // Requests the RenderView to render all the missing pages for the print job. 113 // Requests the RenderView to render all the missing pages for the print job.
114 // No-op if no print job is pending. Returns true if at least one page has 114 // No-op if no print job is pending. Returns true if at least one page has
115 // been requested to the renderer. 115 // been requested to the renderer.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 // Keeps track of the pending callback during scripted print preview. 198 // Keeps track of the pending callback during scripted print preview.
199 content::RenderProcessHost* scripted_print_preview_rph_; 199 content::RenderProcessHost* scripted_print_preview_rph_;
200 200
201 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); 201 DISALLOW_COPY_AND_ASSIGN(PrintViewManager);
202 }; 202 };
203 203
204 } // namespace printing 204 } // namespace printing
205 205
206 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 206 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_preview_tab_controller.cc ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698