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

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

Issue 2264743002: cheets: implement cros side of WallpaperManagerService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change instance getter / setter in SetWallpaperDelegate to snake_case. Created 4 years, 3 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
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 10
(...skipping 22 matching lines...) Expand all
33 // Receives intents from ARC. 33 // Receives intents from ARC.
34 class ArcIntentHelperBridge 34 class ArcIntentHelperBridge
35 : public ArcService, 35 : public ArcService,
36 public InstanceHolder<mojom::IntentHelperInstance>::Observer, 36 public InstanceHolder<mojom::IntentHelperInstance>::Observer,
37 public mojom::IntentHelperHost, 37 public mojom::IntentHelperHost,
38 public ash::LinkHandlerModelFactory { 38 public ash::LinkHandlerModelFactory {
39 public: 39 public:
40 ArcIntentHelperBridge( 40 ArcIntentHelperBridge(
41 ArcBridgeService* bridge_service, 41 ArcBridgeService* bridge_service,
42 const scoped_refptr<ActivityIconLoader>& icon_loader, 42 const scoped_refptr<ActivityIconLoader>& icon_loader,
43 std::unique_ptr<SetWallpaperDelegate> set_wallpaper_delegate,
44 const scoped_refptr<LocalActivityResolver>& activity_resolver); 43 const scoped_refptr<LocalActivityResolver>& activity_resolver);
45 ~ArcIntentHelperBridge() override; 44 ~ArcIntentHelperBridge() override;
46 45
47 // InstanceHolder<mojom::IntentHelperInstance>::Observer 46 // InstanceHolder<mojom::IntentHelperInstance>::Observer
48 void OnInstanceReady() override; 47 void OnInstanceReady() override;
49 void OnInstanceClosed() override; 48 void OnInstanceClosed() override;
50 49
51 // arc::mojom::IntentHelperHost 50 // arc::mojom::IntentHelperHost
52 void OnIconInvalidated(const mojo::String& package_name) override; 51 void OnIconInvalidated(const mojo::String& package_name) override;
53 void OnIntentFiltersUpdated( 52 void OnIntentFiltersUpdated(
(...skipping 10 matching lines...) Expand all
64 static bool IsIntentHelperPackage(const std::string& package_name); 63 static bool IsIntentHelperPackage(const std::string& package_name);
65 64
66 // Filters out handlers that belong to the intent_helper apk and returns 65 // Filters out handlers that belong to the intent_helper apk and returns
67 // a new array. 66 // a new array.
68 static mojo::Array<mojom::UrlHandlerInfoPtr> FilterOutIntentHelper( 67 static mojo::Array<mojom::UrlHandlerInfoPtr> FilterOutIntentHelper(
69 mojo::Array<mojom::UrlHandlerInfoPtr> handlers); 68 mojo::Array<mojom::UrlHandlerInfoPtr> handlers);
70 69
71 private: 70 private:
72 mojo::Binding<mojom::IntentHelperHost> binding_; 71 mojo::Binding<mojom::IntentHelperHost> binding_;
73 scoped_refptr<ActivityIconLoader> icon_loader_; 72 scoped_refptr<ActivityIconLoader> icon_loader_;
74 std::unique_ptr<SetWallpaperDelegate> set_wallpaper_delegate_;
75 scoped_refptr<LocalActivityResolver> activity_resolver_; 73 scoped_refptr<LocalActivityResolver> activity_resolver_;
76 74
77 base::ThreadChecker thread_checker_; 75 base::ThreadChecker thread_checker_;
78 76
79 DISALLOW_COPY_AND_ASSIGN(ArcIntentHelperBridge); 77 DISALLOW_COPY_AND_ASSIGN(ArcIntentHelperBridge);
80 }; 78 };
81 79
82 } // namespace arc 80 } // namespace arc
83 81
84 #endif // COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_BRIDGE_H_ 82 #endif // COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_BRIDGE_H_
OLDNEW
« no previous file with comments | « components/arc/common/wallpaper.mojom ('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