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

Unified Diff: components/arc/intent_helper/arc_intent_helper_bridge.h

Issue 1760773004: Add "Open with <ARC-app-name>" items to the context menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address dcheng's comment Created 4 years, 8 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 | « components/arc/intent_helper/DEPS ('k') | components/arc/intent_helper/arc_intent_helper_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 eab80a854090454104d726d3e225f6b35ce71c4b..ec6bdb7304b277eb772b3590ec0cf1ccabb96e10 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/link_handler_model_factory.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 mojom::IntentHelperHost {
+ public mojom::IntentHelperHost,
+ public ash::LinkHandlerModelFactory {
public:
explicit ArcIntentHelperBridge(ArcBridgeService* bridge_service);
~ArcIntentHelperBridge() override;
// ArcBridgeService::Observer
void OnIntentHelperInstanceReady() override;
+ void OnIntentHelperInstanceClosed() override;
// arc::mojom::IntentHelperHost
void OnOpenUrl(const mojo::String& url) override;
+ // ash::LinkHandlerModelFactory
+ std::unique_ptr<ash::LinkHandlerModel> CreateModel(const GURL& url) override;
+
private:
mojo::Binding<mojom::IntentHelperHost> binding_;
« no previous file with comments | « components/arc/intent_helper/DEPS ('k') | components/arc/intent_helper/arc_intent_helper_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698