Fix build break
[chromium-blink-merge.git] / chrome / browser / printing / print_dialog_cloud.h
blob26c4bddde0b1d0db45142384624d3b09996935f7
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/callback.h"
12 #include "base/memory/ref_counted_memory.h"
13 #include "base/string16.h"
14 #include "ui/gfx/native_widget_types.h"
16 class CommandLine;
17 class PrefRegistrySyncable;
19 namespace base {
20 class FilePath;
23 namespace content {
24 class BrowserContext;
27 namespace print_dialog_cloud {
29 void RegisterUserPrefs(PrefRegistrySyncable* registry);
31 // Creates a print dialog to print a file on disk.
32 // Called on the FILE or UI thread. Even though this may start up a modal
33 // dialog, it will return immediately. The dialog is handled asynchronously.
34 // If non-NULL, |modal_parent| specifies a window that the print dialog is modal
35 // to.
36 void CreatePrintDialogForFile(content::BrowserContext* browser_context,
37 gfx::NativeWindow modal_parent,
38 const base::FilePath& path_to_file,
39 const string16& print_job_title,
40 const string16& print_ticket,
41 const std::string& file_type,
42 bool delete_on_close);
44 // Creates a print dialog to print data in RAM.
45 // Called on the FILE or UI thread. Even though this may start up a modal
46 // dialog, it will return immediately. The dialog is handled asynchronously.
47 // If non-NULL, |modal_parent| specifies a window that the print dialog is modal
48 // to.
49 void CreatePrintDialogForBytes(content::BrowserContext* browser_context,
50 gfx::NativeWindow modal_parent,
51 const base::RefCountedMemory* data,
52 const string16& print_job_title,
53 const string16& print_ticket,
54 const std::string& file_type);
56 // Parse switches from command_line and display the print dialog as appropriate.
57 // Uses the default profile.
58 bool CreatePrintDialogFromCommandLine(const CommandLine& command_line);
60 // Creates a dialog for signing into cloud print.
61 // The dialog will call |callback| when complete.
62 // Called on the UI thread. Even though this starts up a modal
63 // dialog, it will return immediately. The dialog is handled asynchronously.
64 // If non-NULL, |modal_parent| specifies a window that the print dialog is modal
65 // to.
66 void CreateCloudPrintSigninDialog(content::BrowserContext* browser_context,
67 gfx::NativeWindow modal_parent,
68 const base::Closure& callback);
70 } // end namespace
72 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_