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

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

Issue 1843563003: Move arc_intent_helper_bridge.h from c/b/chromeos/ to components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address a 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 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_H_
5 #define CHROME_BROWSER_CHROMEOS_ARC_ARC_INTENT_HELPER_BRIDGE_H_
6
7 #include "base/macros.h"
8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/chromeos/arc/settings_bridge.h"
10 #include "components/arc/arc_bridge_service.h"
11 #include "components/arc/arc_service.h"
12 #include "components/arc/common/intent_helper.mojom.h"
13 #include "mojo/public/cpp/bindings/binding.h"
14
15 namespace arc {
16
17 // Receives intents from ARC.
18 class ArcIntentHelperBridge : public ArcService,
19 public ArcBridgeService::Observer,
20 public IntentHelperHost,
21 public SettingsBridge::Delegate {
22 public:
23 explicit ArcIntentHelperBridge(ArcBridgeService* bridge_service);
24 ~ArcIntentHelperBridge() override;
25
26 // ArcBridgeService::Observer
27 void OnIntentHelperInstanceReady() override;
28 void OnIntentHelperInstanceClosed() override;
29
30 // SettingsBridge::Delegate. Sends a broadcast to the ArcIntentHelper app
31 // in Android.
32 void OnBroadcastNeeded(const std::string& action,
33 const base::DictionaryValue& extras) override;
34
35 // arc::IntentHelperHost
36 void OnOpenUrl(const mojo::String& url) override;
37
38 private:
39 mojo::Binding<IntentHelperHost> binding_;
40 scoped_ptr<SettingsBridge> settings_bridge_;
41
42 DISALLOW_COPY_AND_ASSIGN(ArcIntentHelperBridge);
43 };
44
45 } // namespace arc
46
47 #endif // CHROME_BROWSER_CHROMEOS_ARC_ARC_INTENT_HELPER_BRIDGE_H_
OLDNEW
« no previous file with comments | « ash/test/test_shell_delegate.cc ('k') | chrome/browser/chromeos/arc/arc_intent_helper_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698