summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing/print_dialog_cloud.h
blob: 28b2663584994370ea8870b1932a08149e7a6604 (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
35
36
37
38
// Copyright (c) 2010 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_
#pragma once

#include "base/basictypes.h"
#include "base/gtest_prod_util.h"

class Browser;
class FilePath;
namespace IPC {
class Message;
}

class PrintDialogCloud {
 public:
  // Called on the IO thread.
  static void CreatePrintDialogForPdf(const FilePath& path_to_pdf);

 private:
  friend class PrintDialogCloudTest;

  explicit PrintDialogCloud(const FilePath& path_to_pdf);
  ~PrintDialogCloud();

  // Called as a task from the UI thread, creates an object instance
  // to run the HTML/JS based print dialog for printing through the cloud.
  static void CreateDialogImpl(const FilePath& path_to_pdf);

  Browser* browser_;

  DISALLOW_COPY_AND_ASSIGN(PrintDialogCloud);
};

#endif  // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_