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" | |
11 #include "base/callback.h" | 10 #include "base/callback.h" |
12 | 11 |
13 class Browser; | 12 class Browser; |
14 class Profile; | 13 class Profile; |
15 | 14 |
16 namespace base { | 15 namespace base { |
17 class CommandLine; | 16 class CommandLine; |
18 } | 17 } |
19 | 18 |
20 namespace print_dialog_cloud { | 19 namespace print_dialog_cloud { |
21 | 20 |
22 // Creates a tab with Google 'sign in' or 'add account' page, based on | 21 // Creates a tab with Google 'sign in' or 'add account' page, based on |
23 // passed |add_account| value. | 22 // passed |add_account| value. |
24 // Calls |callback| when complete. | 23 // Calls |callback| when complete. |
25 void CreateCloudPrintSigninTab(Browser* browser, | 24 void CreateCloudPrintSigninTab(Browser* browser, |
26 bool add_account, | 25 bool add_account, |
27 const base::Closure& callback); | 26 const base::Closure& callback); |
28 | 27 |
29 // Parse switches from command_line and display the print dialog as appropriate. | 28 // Parse switches from command_line and display the print dialog as appropriate. |
30 bool CreatePrintDialogFromCommandLine(Profile* profile, | 29 bool CreatePrintDialogFromCommandLine(Profile* profile, |
31 const base::CommandLine& command_line); | 30 const base::CommandLine& command_line); |
32 | 31 |
33 } // namespace print_dialog_cloud | 32 } // namespace print_dialog_cloud |
34 | 33 |
35 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ | 34 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_ |
OLD | NEW |