OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 #ifndef CHROME_BROWSER_CHROMEOS_ARC_ARC_INTENT_HELPER_BRIDGE_H_ |
| 5 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_INTENT_HELPER_BRIDGE_H_ |
| 6 |
| 7 #include "base/macros.h" |
| 8 #include "components/arc/arc_bridge_service.h" |
| 9 #include "components/arc/arc_service.h" |
| 10 #include "components/arc/common/intent_helper.mojom.h" |
| 11 #include "mojo/public/cpp/bindings/binding.h" |
| 12 |
| 13 namespace arc { |
| 14 |
| 15 // Receives intents from ARC. |
| 16 class ArcIntentHelperBridge : public ArcService, |
| 17 public ArcBridgeService::Observer, |
| 18 public IntentHelperHost { |
| 19 public: |
| 20 explicit ArcIntentHelperBridge(ArcBridgeService* bridge_service); |
| 21 ~ArcIntentHelperBridge() override; |
| 22 |
| 23 // ArcBridgeService::Observer |
| 24 void OnIntentHelperInstanceReady() override; |
| 25 |
| 26 // arc::IntentHelperHost |
| 27 void OnOpenUrl(const mojo::String& url) override; |
| 28 |
| 29 private: |
| 30 mojo::Binding<IntentHelperHost> binding_; |
| 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(ArcIntentHelperBridge); |
| 33 }; |
| 34 |
| 35 } // namespace arc |
| 36 |
| 37 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_INTENT_HELPER_BRIDGE_H_ |
OLD | NEW |