mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
0a439f3f88
We're now producing a flutter_content_handler binary for Fuchsia that builds and links.
33 lines
1.0 KiB
C++
33 lines
1.0 KiB
C++
// 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 FLUTTER_CONTENT_HANDLER_CONTENT_HANDLER_IMPL_H_
|
|
#define FLUTTER_CONTENT_HANDLER_CONTENT_HANDLER_IMPL_H_
|
|
|
|
#include "lib/ftl/macros.h"
|
|
#include "mojo/public/cpp/bindings/strong_binding.h"
|
|
#include "mojo/services/content_handler/interfaces/content_handler.mojom.h"
|
|
|
|
namespace flutter_content_handler {
|
|
|
|
class ContentHandlerImpl : public mojo::ContentHandler {
|
|
public:
|
|
explicit ContentHandlerImpl(
|
|
mojo::InterfaceRequest<mojo::ContentHandler> request);
|
|
~ContentHandlerImpl() override;
|
|
|
|
private:
|
|
// Overridden from ContentHandler:
|
|
void StartApplication(mojo::InterfaceRequest<mojo::Application> application,
|
|
mojo::URLResponsePtr response) override;
|
|
|
|
mojo::StrongBinding<mojo::ContentHandler> binding_;
|
|
|
|
FTL_DISALLOW_COPY_AND_ASSIGN(ContentHandlerImpl);
|
|
};
|
|
|
|
} // namespace flutter_content_handler
|
|
|
|
#endif // FLUTTER_CONTENT_HANDLER_CONTENT_HANDLER_IMPL_H_
|