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_ARC_INTENT_HELPER_OBSERVER_H_ | 5 #ifndef COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_OBSERVER_H_ |
6 #define COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_OBSERVER_H_ | 6 #define COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_OBSERVER_H_ |
7 | 7 |
8 namespace arc { | 8 namespace arc { |
9 | 9 |
10 class ArcIntentHelperObserver { | 10 class ArcIntentHelperObserver { |
11 public: | 11 public: |
12 // Called when app's intent filter is updated. | |
13 virtual void OnAppsUpdated() = 0; | |
14 virtual ~ArcIntentHelperObserver() = default; | 12 virtual ~ArcIntentHelperObserver() = default; |
| 13 // Called when intent filters are added or removed. |
| 14 virtual void OnIntentFiltersUpdated() = 0; |
15 }; | 15 }; |
16 | 16 |
17 } // namespace arc | 17 } // namespace arc |
18 | 18 |
19 #endif // COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_OBSERVER_H_ | 19 #endif // COMPONENTS_ARC_INTENT_HELPER_ARC_INTENT_HELPER_OBSERVER_H_ |
OLD | NEW |