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

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

Issue 2115863002: Stub for ARC print Bridge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename ArcPrintBridge->ArcPrintService + some nits. 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_service.h
diff --git a/chrome/browser/chromeos/arc/arc_print_service.h b/chrome/browser/chromeos/arc/arc_print_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..c5385ea97b89ebe7a775cef35e6f602ea93947a8
--- /dev/null
+++ b/chrome/browser/chromeos/arc/arc_print_service.h
@@ -0,0 +1,35 @@
+// 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_SERVICE_H_
+#define CHROME_BROWSER_CHROMEOS_ARC_ARC_PRINT_SERVICE_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 ArcPrintService : public ArcService,
+ public InstanceHolder<mojom::PrintInstance>::Observer,
+ public mojom::PrintHost {
+ public:
+ explicit ArcPrintService(ArcBridgeService* bridge_service);
+ ~ArcPrintService() override;
+
+ // ArcBridgeService::Observer overrides.
+ void OnInstanceReady() override;
+
+ void Print(mojo::ScopedHandle) override;
dcheng 2016/07/21 02:15:22 Please name this parameter (Google style only allo
Sergey Poromov 2016/07/21 13:26:03 Done.
dcheng 2016/07/25 06:36:30 Nit: C++ naming convention for arg names is_like_t
+
+ private:
+ mojo::Binding<mojom::PrintHost> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(ArcPrintService);
+};
+
+} // namespace arc
+
+#endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_PRINT_SERVICE_H_
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_print_service.cc » ('j') | chrome/browser/chromeos/arc/arc_print_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698