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

Side by Side Diff: components/printing/browser/print_manager_utils.h

Issue 2920013002: Use pdf compositor service for printing when OOPIF is enabled
Patch Set: rebase Created 3 years, 2 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_ 5 #ifndef COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_
6 #define COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_ 6 #define COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_
7 7
8 struct PrintMsg_Print_Params; 8 struct PrintMsg_Print_Params;
9 9
10 namespace content {
11 class WebContents;
12 }
13
10 namespace printing { 14 namespace printing {
11 15
12 class PrintSettings; 16 class PrintSettings;
13 17
18 void SetOopifEnabled(bool enabled);
19 bool IsOopifEnabled();
20
21 // Check on the current feature settings to decide whether we need to
22 // create a PDF compositor client for this |web_contents|.
23 void CreateCompositeClientIfNeeded(content::WebContents* web_contents);
24
14 // Converts given settings to Print_Params and stores them in the output 25 // Converts given settings to Print_Params and stores them in the output
15 // parameter |params|. 26 // parameter |params|.
16 void RenderParamsFromPrintSettings(const PrintSettings& settings, 27 void RenderParamsFromPrintSettings(const PrintSettings& settings,
17 PrintMsg_Print_Params* params); 28 PrintMsg_Print_Params* params);
18 29
19 } // namespace printing 30 } // namespace printing
20 31
21 #endif // COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_ 32 #endif // COMPONENTS_PRINTING_BROWSER_PRINT_MANAGER_UTILS_H_
OLDNEW
« no previous file with comments | « components/printing/browser/print_composite_client.cc ('k') | components/printing/browser/print_manager_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698