Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1702)

Unified Diff: chrome/browser/chromeos/arc/arc_intent_helper_bridge_impl.h

Issue 1590723003: Host-side implementation of ARC Intent handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Support new GURL interface at https://chromium.googlesource.com/chromium/src/+/dfbcc3b7926990bbf523… Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_intent_helper_bridge_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/arc_intent_helper_bridge_impl.h
diff --git a/chrome/browser/chromeos/arc/arc_intent_helper_bridge_impl.h b/chrome/browser/chromeos/arc/arc_intent_helper_bridge_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..5af1f443c7a22ffbfbd2f280b0cbc163c2956e7c
--- /dev/null
+++ b/chrome/browser/chromeos/arc/arc_intent_helper_bridge_impl.h
@@ -0,0 +1,41 @@
+// 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_IMPL_H_
+#define CHROME_BROWSER_CHROMEOS_ARC_ARC_INTENT_HELPER_BRIDGE_IMPL_H_
+
+#include "base/macros.h"
+#include "components/arc/arc_bridge_service.h"
+#include "components/arc/common/intent_helper.mojom.h"
+#include "components/arc/intent_helper/arc_intent_helper_bridge.h"
+#include "mojo/public/cpp/bindings/binding.h"
+
+namespace arc {
+
+// Receives intents from ARC.
+class ArcIntentHelperBridgeImpl : public ArcIntentHelperBridge,
+ public ArcBridgeService::Observer,
+ public IntentHelperHost {
+ public:
+ ArcIntentHelperBridgeImpl();
+ ~ArcIntentHelperBridgeImpl() override;
+
+ // Starts listening to state changes of the ArcBridgeService.
+ // This must be called before the bridge service starts bootstrapping.
+ void StartObservingBridgeServiceChanges() override;
+
+ // ArcBridgeService::Observer
+ void OnIntentHelperInstanceReady() override;
+
+ // arc::IntentHelperHost
+ void OnOpenUrl(const mojo::String& url) override;
+
+ private:
+ mojo::Binding<IntentHelperHost> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(ArcIntentHelperBridgeImpl);
+};
+
+} // namespace arc
+
+#endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_INTENT_HELPER_BRIDGE_IMPL_H_
« no previous file with comments | « no previous file | chrome/browser/chromeos/arc/arc_intent_helper_bridge_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698