| 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..b798f0c232dc1105bd3c605ba261251cda4527c6
|
| --- /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 pdf_data) override;
|
| +
|
| + private:
|
| + mojo::Binding<mojom::PrintHost> binding_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ArcPrintService);
|
| +};
|
| +
|
| +} // namespace arc
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_PRINT_SERVICE_H_
|
|
|