blob: 5be0ba1114547809144a050f5c2df5e72aa463fa [file] [log] [blame]
// 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_