OLD | NEW |
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_ACTIVITY_ICON_LOADER_H_ | 5 #ifndef COMPONENTS_ARC_INTENT_HELPER_ACTIVITY_ICON_LOADER_H_ |
6 #define COMPONENTS_ARC_INTENT_HELPER_ACTIVITY_ICON_LOADER_H_ | 6 #define COMPONENTS_ARC_INTENT_HELPER_ACTIVITY_ICON_LOADER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/threading/thread_checker.h" | 16 #include "base/threading/thread_checker.h" |
17 #include "components/arc/arc_service.h" | 17 #include "components/arc/arc_service.h" |
18 #include "components/arc/common/intent_helper.mojom.h" | 18 #include "components/arc/common/intent_helper.mojom.h" |
| 19 #include "components/arc/intent_helper/arc_intent_helper_bridge.h" |
19 #include "ui/base/layout.h" | 20 #include "ui/base/layout.h" |
20 #include "ui/gfx/image/image.h" | 21 #include "ui/gfx/image/image.h" |
21 | 22 |
22 namespace arc { | 23 namespace arc { |
23 | 24 |
24 // A class which retrieves an activity icon from ARC. | 25 // A class which retrieves an activity icon from ARC. |
25 class ActivityIconLoader : public base::RefCounted<ActivityIconLoader> { | 26 class ActivityIconLoader : public base::RefCounted<ActivityIconLoader> { |
26 public: | 27 public: |
27 struct Icons { | 28 struct Icons { |
28 Icons(const gfx::Image& icon16, const gfx::Image& icon20); | 29 Icons(const gfx::Image& icon16, const gfx::Image& icon20); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 ActivityToIconsMap cached_icons_; | 111 ActivityToIconsMap cached_icons_; |
111 | 112 |
112 base::ThreadChecker thread_checker_; | 113 base::ThreadChecker thread_checker_; |
113 | 114 |
114 DISALLOW_COPY_AND_ASSIGN(ActivityIconLoader); | 115 DISALLOW_COPY_AND_ASSIGN(ActivityIconLoader); |
115 }; | 116 }; |
116 | 117 |
117 } // namespace arc | 118 } // namespace arc |
118 | 119 |
119 #endif // COMPONENTS_ARC_INTENT_HELPER_ACTIVITY_ICON_LOADER_H_ | 120 #endif // COMPONENTS_ARC_INTENT_HELPER_ACTIVITY_ICON_LOADER_H_ |
OLD | NEW |