summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing/print_dialog_cloud.h
blob: 5be0ba1114547809144a050f5c2df5e72aa463fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_
#define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_

#include <string>

#include "base/callback.h"

class Browser;
class Profile;

namespace base {
class CommandLine;
}

namespace print_dialog_cloud {

// Creates a tab with Google 'sign in' or 'add account' page, based on
// passed |add_account| value.
// Calls |callback| when complete.
void CreateCloudPrintSigninTab(Browser* browser,
                               bool add_account,
                               const base::Closure& callback);

// Parse switches from command_line and display the print dialog as appropriate.
bool CreatePrintDialogFromCommandLine(Profile* profile,
                                      const base::CommandLine& command_line);

}  // namespace print_dialog_cloud

#endif  // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_