| Index: components/arc/intent_helper/arc_intent_helper_bridge.h
|
| diff --git a/components/arc/intent_helper/arc_intent_helper_bridge.h b/components/arc/intent_helper/arc_intent_helper_bridge.h
|
| index 0754bf0a82103e0e89b2c8661ff4cad552021e38..3b4cf98c4c5023365d2a2bcb1bcc4a06f16a17e8 100644
|
| --- a/components/arc/intent_helper/arc_intent_helper_bridge.h
|
| +++ b/components/arc/intent_helper/arc_intent_helper_bridge.h
|
| @@ -5,28 +5,42 @@
|
| #ifndef COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_BRIDGE_H_
|
| #define COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_BRIDGE_H_
|
|
|
| +#include <memory>
|
| +
|
| +#include "ash/renderer_context_menu/open_with_menu_controller.h"
|
| #include "base/macros.h"
|
| #include "components/arc/arc_bridge_service.h"
|
| #include "components/arc/arc_service.h"
|
| #include "components/arc/common/intent_helper.mojom.h"
|
| #include "mojo/public/cpp/bindings/binding.h"
|
|
|
| +namespace ash {
|
| +
|
| +class LinkHandlerModel;
|
| +
|
| +} // namespace ash
|
| +
|
| namespace arc {
|
|
|
| // Receives intents from ARC.
|
| class ArcIntentHelperBridge : public ArcService,
|
| public ArcBridgeService::Observer,
|
| - public IntentHelperHost {
|
| + public IntentHelperHost,
|
| + public ash::OpenWithMenuController::Delegate {
|
| public:
|
| explicit ArcIntentHelperBridge(ArcBridgeService* bridge_service);
|
| ~ArcIntentHelperBridge() override;
|
|
|
| // ArcBridgeService::Observer
|
| void OnIntentHelperInstanceReady() override;
|
| + void OnIntentHelperInstanceClosed() override;
|
|
|
| // arc::IntentHelperHost
|
| void OnOpenUrl(const mojo::String& url) override;
|
|
|
| + // ash::OpenWithMenuController::Delegate
|
| + std::unique_ptr<ash::LinkHandlerModel> CreateModel(const GURL& url) override;
|
| +
|
| private:
|
| mojo::Binding<IntentHelperHost> binding_;
|
|
|
|
|