OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_PRINT_BRIDGE_H_ | |
6 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_PRINT_BRIDGE_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "components/arc/arc_bridge_service.h" | |
10 #include "components/arc/arc_service.h" | |
11 #include "mojo/public/cpp/bindings/binding.h" | |
12 | |
13 namespace arc { | |
14 | |
15 class ArcPrintBridge : public ArcService, | |
16 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.
| |
17 public mojom::PrintHost, | |
18 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.
| |
19 public: | |
20 explicit ArcPrintBridge(ArcBridgeService* bridge_service); | |
21 ~ArcPrintBridge() override; | |
22 | |
23 // ArcBridgeService::Observer overrides. | |
24 void OnPrintInstanceReady() override; | |
25 | |
26 void Print(mojo::ScopedHandle) override; | |
27 | |
28 private: | |
29 void SavePdf(int); | |
30 void OpenPdf(); | |
31 | |
32 mojo::Binding<mojom::PrintHost> binding_; | |
33 base::FilePath file_path_; | |
34 | |
35 DISALLOW_COPY_AND_ASSIGN(ArcPrintBridge); | |
36 }; | |
37 | |
38 } // namespace arc | |
39 | |
40 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_PRINT_BRIDGE_H_ | |
OLD | NEW |