| OLD | NEW |
| 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_DIALOG_CLOUD_H_ | 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ |
| 6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ | 6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/memory/ref_counted_memory.h" | 12 #include "base/memory/ref_counted_memory.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "ui/gfx/native_widget_types.h" | 14 #include "ui/gfx/native_widget_types.h" |
| 15 | 15 |
| 16 class Browser; | 16 class Browser; |
| 17 class CommandLine; | |
| 18 class Profile; | 17 class Profile; |
| 19 | 18 |
| 20 namespace base { | 19 namespace base { |
| 20 class CommandLine; |
| 21 class FilePath; | 21 class FilePath; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace content { | 24 namespace content { |
| 25 class BrowserContext; | 25 class BrowserContext; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace user_prefs { | 28 namespace user_prefs { |
| 29 class PrefRegistrySyncable; | 29 class PrefRegistrySyncable; |
| 30 } | 30 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 52 // to. | 52 // to. |
| 53 void CreatePrintDialogForBytes(content::BrowserContext* browser_context, | 53 void CreatePrintDialogForBytes(content::BrowserContext* browser_context, |
| 54 gfx::NativeWindow modal_parent, | 54 gfx::NativeWindow modal_parent, |
| 55 const base::RefCountedMemory* data, | 55 const base::RefCountedMemory* data, |
| 56 const base::string16& print_job_title, | 56 const base::string16& print_job_title, |
| 57 const base::string16& print_ticket, | 57 const base::string16& print_ticket, |
| 58 const std::string& file_type); | 58 const std::string& file_type); |
| 59 | 59 |
| 60 // Parse switches from command_line and display the print dialog as appropriate. | 60 // Parse switches from command_line and display the print dialog as appropriate. |
| 61 bool CreatePrintDialogFromCommandLine(Profile* profile, | 61 bool CreatePrintDialogFromCommandLine(Profile* profile, |
| 62 const CommandLine& command_line); | 62 const base::CommandLine& command_line); |
| 63 | 63 |
| 64 // Creates a tab with Google sinnin page. | 64 // Creates a tab with Google sinnin page. |
| 65 // Calls |callback| when complete. | 65 // Calls |callback| when complete. |
| 66 void CreateCloudPrintSigninTab(Browser* browser, | 66 void CreateCloudPrintSigninTab(Browser* browser, |
| 67 const base::Closure& callback); | 67 const base::Closure& callback); |
| 68 | 68 |
| 69 } // namespace print_dialog_cloud | 69 } // namespace print_dialog_cloud |
| 70 | 70 |
| 71 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ | 71 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ |
| OLD | NEW |