Index: chrome/browser/chromeos/arc/arc_print_bridge.h |
diff --git a/chrome/browser/chromeos/arc/arc_print_bridge.h b/chrome/browser/chromeos/arc/arc_print_bridge.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..61aa9fd4f5a3835f9e227208ffb93f15a03aa678 |
--- /dev/null |
+++ b/chrome/browser/chromeos/arc/arc_print_bridge.h |
@@ -0,0 +1,40 @@ |
+// Copyright 2016 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_CHROMEOS_ARC_ARC_PRINT_BRIDGE_H_ |
+#define CHROME_BROWSER_CHROMEOS_ARC_ARC_PRINT_BRIDGE_H_ |
+ |
+#include "base/macros.h" |
+#include "components/arc/arc_bridge_service.h" |
+#include "components/arc/arc_service.h" |
+#include "mojo/public/cpp/bindings/binding.h" |
+ |
+namespace arc { |
+ |
+class ArcPrintBridge : public ArcService, |
+ public ArcBridgeService::Observer, |
Luis Héctor Chávez
2016/07/14 16:29:44
You need to rebase, since this interface changed.
Sergey Poromov
2016/07/19 16:32:09
Done.
|
+ public mojom::PrintHost, |
+ public base::RefCountedThreadSafe<ArcPrintBridge> { |
Luis Héctor Chávez
2016/07/14 16:29:44
base::RefCountedThreadSafe requires you to make yo
Sergey Poromov
2016/07/19 16:32:09
Done.
|
+ public: |
+ explicit ArcPrintBridge(ArcBridgeService* bridge_service); |
+ ~ArcPrintBridge() override; |
+ |
+ // ArcBridgeService::Observer overrides. |
+ void OnPrintInstanceReady() override; |
+ |
+ void Print(mojo::ScopedHandle) override; |
+ |
+ private: |
+ void SavePdf(int); |
+ void OpenPdf(); |
+ |
+ mojo::Binding<mojom::PrintHost> binding_; |
+ base::FilePath file_path_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ArcPrintBridge); |
+}; |
+ |
+} // namespace arc |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_PRINT_BRIDGE_H_ |