Index: chrome/browser/chromeos/arc/arc_intent_helper_bridge.h |
diff --git a/chrome/browser/chromeos/arc/arc_intent_helper_bridge.h b/chrome/browser/chromeos/arc/arc_intent_helper_bridge.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..274004c71b5528276b7b27b4a5826f54da173681 |
--- /dev/null |
+++ b/chrome/browser/chromeos/arc/arc_intent_helper_bridge.h |
@@ -0,0 +1,37 @@ |
+// 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_INTENT_HELPER_BRIDGE_H_ |
+#define CHROME_BROWSER_CHROMEOS_ARC_ARC_INTENT_HELPER_BRIDGE_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 arc { |
+ |
+// Receives intents from ARC. |
+class ArcIntentHelperBridge : public ArcService, |
+ public ArcBridgeService::Observer, |
+ public IntentHelperHost { |
+ public: |
+ explicit ArcIntentHelperBridge(ArcBridgeService* bridge_service); |
+ ~ArcIntentHelperBridge() override; |
+ |
+ // ArcBridgeService::Observer |
+ void OnIntentHelperInstanceReady() override; |
+ |
+ // arc::IntentHelperHost |
+ void OnOpenUrl(const mojo::String& url) override; |
+ |
+ private: |
+ mojo::Binding<IntentHelperHost> binding_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(ArcIntentHelperBridge); |
+}; |
+ |
+} // namespace arc |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_INTENT_HELPER_BRIDGE_H_ |