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

Side by Side Diff: components/arc/intent_helper/arc_intent_helper_bridge.h

Issue 2511883003: Use mojo typemaps to simplify arc::IntentFilter::IntentFilter() (Closed)
Patch Set: Created 4 years 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_BRIDGE_H_ 5 #ifndef COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_BRIDGE_H_
6 #define COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_BRIDGE_H_ 6 #define COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_BRIDGE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 10 matching lines...) Expand all
21 namespace ash { 21 namespace ash {
22 22
23 class LinkHandlerModel; 23 class LinkHandlerModel;
24 24
25 } // namespace ash 25 } // namespace ash
26 26
27 namespace arc { 27 namespace arc {
28 28
29 class ActivityIconLoader; 29 class ActivityIconLoader;
30 class ArcBridgeService; 30 class ArcBridgeService;
31 class IntentFilter;
31 class LocalActivityResolver; 32 class LocalActivityResolver;
32 class SetWallpaperDelegate; 33 class SetWallpaperDelegate;
33 34
34 // Receives intents from ARC. 35 // Receives intents from ARC.
35 class ArcIntentHelperBridge 36 class ArcIntentHelperBridge
36 : public ArcService, 37 : public ArcService,
37 public InstanceHolder<mojom::IntentHelperInstance>::Observer, 38 public InstanceHolder<mojom::IntentHelperInstance>::Observer,
38 public mojom::IntentHelperHost, 39 public mojom::IntentHelperHost,
39 public ash::LinkHandlerModelFactory { 40 public ash::LinkHandlerModelFactory {
40 public: 41 public:
(...skipping 12 matching lines...) Expand all
53 const scoped_refptr<LocalActivityResolver>& activity_resolver); 54 const scoped_refptr<LocalActivityResolver>& activity_resolver);
54 ~ArcIntentHelperBridge() override; 55 ~ArcIntentHelperBridge() override;
55 56
56 // InstanceHolder<mojom::IntentHelperInstance>::Observer 57 // InstanceHolder<mojom::IntentHelperInstance>::Observer
57 void OnInstanceReady() override; 58 void OnInstanceReady() override;
58 void OnInstanceClosed() override; 59 void OnInstanceClosed() override;
59 60
60 // mojom::IntentHelperHost 61 // mojom::IntentHelperHost
61 void OnIconInvalidated(const std::string& package_name) override; 62 void OnIconInvalidated(const std::string& package_name) override;
62 void OnIntentFiltersUpdated( 63 void OnIntentFiltersUpdated(
63 std::vector<mojom::IntentFilterPtr> intent_filters) override; 64 std::vector<arc::IntentFilter> intent_filters) override;
Yusuke Sato 2016/11/30 21:47:15 Is arc:: necessary?
yoshiki 2016/12/02 19:34:27 Done.
64 void OnOpenDownloads() override; 65 void OnOpenDownloads() override;
65 void OnOpenUrl(const std::string& url) override; 66 void OnOpenUrl(const std::string& url) override;
66 void OpenWallpaperPicker() override; 67 void OpenWallpaperPicker() override;
67 void SetWallpaperDeprecated(const std::vector<uint8_t>& jpeg_data) override; 68 void SetWallpaperDeprecated(const std::vector<uint8_t>& jpeg_data) override;
68 69
69 // ash::LinkHandlerModelFactory 70 // ash::LinkHandlerModelFactory
70 std::unique_ptr<ash::LinkHandlerModel> CreateModel(const GURL& url) override; 71 std::unique_ptr<ash::LinkHandlerModel> CreateModel(const GURL& url) override;
71 72
72 // Returns false if |package_name| is for the intent_helper apk. 73 // Returns false if |package_name| is for the intent_helper apk.
73 static bool IsIntentHelperPackage(const std::string& package_name); 74 static bool IsIntentHelperPackage(const std::string& package_name);
(...skipping 23 matching lines...) Expand all
97 scoped_refptr<LocalActivityResolver> activity_resolver_; 98 scoped_refptr<LocalActivityResolver> activity_resolver_;
98 99
99 base::ThreadChecker thread_checker_; 100 base::ThreadChecker thread_checker_;
100 101
101 DISALLOW_COPY_AND_ASSIGN(ArcIntentHelperBridge); 102 DISALLOW_COPY_AND_ASSIGN(ArcIntentHelperBridge);
102 }; 103 };
103 104
104 } // namespace arc 105 } // namespace arc
105 106
106 #endif // COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_BRIDGE_H_ 107 #endif // COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_BRIDGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698