summaryrefslogtreecommitdiffstats
path: root/chrome/browser/printing/print_dialog_cloud.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/printing/print_dialog_cloud.h')
-rw-r--r--chrome/browser/printing/print_dialog_cloud.h50
1 files changed, 11 insertions, 39 deletions
diff --git a/chrome/browser/printing/print_dialog_cloud.h b/chrome/browser/printing/print_dialog_cloud.h
index 0dde6b5..03bc736 100644
--- a/chrome/browser/printing/print_dialog_cloud.h
+++ b/chrome/browser/printing/print_dialog_cloud.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -11,45 +11,17 @@
#include "base/basictypes.h"
#include "base/string16.h"
-class Browser;
class FilePath;
-namespace IPC {
-class Message;
-}
-
-class PrintDialogCloud {
- public:
- // Called on the IO or UI thread.
- static void CreatePrintDialogForFile(const FilePath& path_to_file,
- const string16& print_job_title,
- const std::string& file_type,
- bool modal);
-
- private:
- friend class PrintDialogCloudTest;
-
- explicit PrintDialogCloud(const FilePath& path_to_file,
- const string16& print_job_title,
- const std::string& file_type,
- bool modal);
- ~PrintDialogCloud();
-
- void Init(const FilePath& path_to_file,
- const string16& print_job_title,
- const std::string& file_type,
- bool modal);
-
- // 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_file,
- const string16& print_job_title,
- const std::string& file_type,
- bool modal);
-
- Browser* browser_;
-
- DISALLOW_COPY_AND_ASSIGN(PrintDialogCloud);
-};
+namespace print_dialog_cloud {
+
+// Called on the FILE or UI thread. Even though this may start up a modal
+// dialog, it will return immediately. The dialog is handled asynchronously.
+void CreatePrintDialogForFile(const FilePath& path_to_file,
+ const string16& print_job_title,
+ const std::string& file_type,
+ bool modal);
+
+} // end namespace
#endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_