Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4273)

Unified Diff: chrome/browser/chromeos/arc/arc_print_bridge.h

Issue 2115863002: Stub for ARC print Bridge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move bridge code and run I/O on FILE thread. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_print_bridge.cc » ('j') | chrome/browser/chromeos/arc/arc_print_bridge.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698