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

Side by Side Diff: chrome/browser/chromeos/arc/arc_intent_helper_bridge_impl.h

Issue 1596663002: arc-bridge: Introduce the ArcService class (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Rebased + protected ArcService direct instantiation 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 unified diff | Download patch
OLDNEW
(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_IMPL_H_
5 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_INTENT_HELPER_BRIDGE_IMPL_H_
6
7 #include "base/macros.h"
8 #include "components/arc/arc_bridge_service.h"
9 #include "components/arc/common/intent_helper.mojom.h"
10 #include "components/arc/intent_helper/arc_intent_helper_bridge.h"
11 #include "mojo/public/cpp/bindings/binding.h"
12
13 namespace arc {
14
15 // Receives intents from ARC.
16 class ArcIntentHelperBridgeImpl : public ArcIntentHelperBridge,
17 public ArcBridgeService::Observer,
18 public IntentHelperHost {
19 public:
20 ArcIntentHelperBridgeImpl();
21 ~ArcIntentHelperBridgeImpl() override;
22
23 // Starts listening to state changes of the ArcBridgeService.
24 // This must be called before the bridge service starts bootstrapping.
25 void StartObservingBridgeServiceChanges() override;
26
27 // ArcBridgeService::Observer
28 void OnIntentHelperInstanceReady() override;
29
30 // arc::IntentHelperHost
31 void OnOpenUrl(const mojo::String& url) override;
32
33 private:
34 mojo::Binding<IntentHelperHost> binding_;
35
36 DISALLOW_COPY_AND_ASSIGN(ArcIntentHelperBridgeImpl);
37 };
38
39 } // namespace arc
40
41 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_INTENT_HELPER_BRIDGE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_intent_helper_bridge.cc ('k') | 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